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)
Supporting organizations:

Project information

Releases

8.x-1.5 Stable release covered by the Drupal Security Team released 9 June 2024
Works with Drupal: ^8 || ^9 || ^10 || ^11

Drupal 11 compatibility

Install:

Development version: 8.x-1.x-dev updated 9 Jun 2024 at 06:52 UTC