Fixed tests and improved documentation.
#3222666: drupal_menu() incorrectly caches the active parent menu item in two-leveled menu #3108210: TypeError on drupalBlock twig extension
This is a patch (bugfix) release of Twig Tweak.
#3222014: Allow custom display settings for drupal_field()
Downgraded symfony/polyfill-php80 requirement to make the module compatible with drupal/core-recommended 9.0+
symfony/polyfill-php80
drupal/core-recommended
#3211870: Composer installation failed
#3185016: Translation filter #3176561: drupal_block does not use the plugin cache metadata
Fixed regression #3174903: Error: Call to a member function getRegion() on null in hook_theme_suggestions_block_alter()
The release includes a couple of minor bug fixes. #3161956: No ID in render array for blocks #3173946: drupal_region() overcaches empty
[#https://www.drupal.org/project/twig_tweak/issues/3162777] Entity cache metadata are now used when rendering fields ({{ node.field_name|view }}).
{{ node.field_name|view }}
#3068078: Block attributes and contextual links are removed Minor code fixes.
viewFilter
Development release package for the 3.0.x release.
#3116410: The module may not bubble access cacheability metadata
Minimum Drupal core version is set to 8.7.
Fixed regression drupal_block() function.
See release notes for 8.x-2.2.
Important: Twig tweak 2.x is not compatible with Twig tweak 1.x Check out this migration guide for details.
Changes since version 8.x-2.0-rc4
#2913809: Ouput drupal_region() function using region's Twig template #2925554: Add drupal_view_result() function
Development snapshot.
Added entity access check to improve security.
To revert the behavior add the following code to your settings.php file.
/** * Disable checking entity access in Twig tweak functions. */ $settings['twig_tweak_check_access'] = FALSE;
Change log:
PHP filter is disabled by default. https://www.drupal.org/node/2743775
Entity can be loaded from URL.
First stable release.