Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Twig Renderable

Security covered Under active development 248 sites

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)
Drupal 8–11

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.

Activity

Tracked releases
2
Tracked since
Feb 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Active

Releases

Version Type Core PHP Release date
8.x-1.5 Stable 8–11 Jun 9, 2024
8.x-1.4 Stable 8–10 Feb 2, 2023