Drupal module for pluggable twig functions.
Drupal 8.2 or lower: Use Twig Extender 8.1 Drupal 8.3 or higher: Use Twig Extender 8.2
Using for creating a block configuration on the fly
{{ block_create('plugin_id', [<plugin-config>]) }}
Using a exisiting block configuration
{{ block_view('config_entity_id') }}
{% if user_is_logged_in() %}
Hello user
{% else %}
Please login
{% endif %}
{% if is_front() %}
On frontpage
{% endif %}
{{ node|to_url }}
{{ urlObject|to_url }}