Part of the Twig ecosystem · 43 projects
This module provides a Twig extension that makes it easier to work with Drupal render arrays directly within Twig templates. It offers a function to check if a render array will produce output and filters to add CSS classes or merge attributes.
Provides a Twig extension to work with render arrays.
Function
- will_have_output('path', 'to', 'render', 'array')
Filters
- add_class(string|array $class)
- merge_attributes(array|\Drupal\Core\Template\Attribute $attributes)
Ask your assistant about Twig Renderable
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Twig ecosystem
Most installed first