Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Cms 2.1.4 Update released for Drupal core (2.1.4)! Release: Drupal 12.0.0-alpha1 First alpha version released for Drupal core (12.0.0-alpha1). Release: PhotoSwipe - Responsive JavaScript Modal Image Gallery 5.0.9 Minor update available for module photoswipe (5.0.9). Release: AI (Artificial Intelligence) 1.4.8 Minor update available for module ai (1.4.8). Release: AI (Artificial Intelligence) 1.3.13 Minor update available for module ai (1.3.13). Release: Moderated Content Bulk Publish 2.0.53 Minor update available for module moderated_content_bulk_publish (2.0.53). Release: Mailchimp 2.2.9 Minor update available for module mailchimp (2.2.9). Release: Mailchimp 3.1.4 Minor update available for module mailchimp (3.1.4). Module Revived: Image field to media 3.0.2 Module image_field_to_media updated after 13 months of inactivity (3.0.2). Security Coverage: Analyze PostHog Module analyze_posthog now has official Drupal security advisory coverage.

Entity Theme Engine

No security coverage Drupal 8–11

Part of the Entity ecosystem · 221 projects

View on drupal.org

This module is for theme entity with editable twig template in admin ui, supoorts all content entity such as block_content and node . You can use automatic prprocessed field data in the twig template simply with field machine name, template can specify for entity display mode and theme , supports attach assets library.

Features

  • All content entity support.
  • Editable twig template.
  • Automatic preprocessd field data variable for twig template, all field data type support.
  • Original field out put support.(use {{ field_name['#original'] }}).
  • Twig variable alter api (hook_entity_widget_variables_alter).
  • Theme and display mode specified template.
  • Entity widget template support import and export.
  • Template form edit format settings.
  • Attach assets library.
  • Attach context entity variables.
  • Custom wrapper style plugin for views.

Twig variables

  • The base variables for a field is the property defined in the data type,{{ field_name.value}} for text field and {{field_name.target_id}} for reference field.
  • {% for item in field_name.items %} for multi value field
  • {{field_name.render}} for text field html out put or rendered entity for entity reference field.
  • {{field_name.styles.[style_name]}} for image or media image style url.
  • {{field_name.media_source}} for media source url or value.
  • {{field_name.render}} for views reference field render array with views content.
  • {{field_name.data}} for menu reference field menu tree data.
  • {{field_name.id}} {{field_name.uuid}} {{field_name.entity_label}} {{field_name.entity_url}} {{field_name.entity_type}} avaliable for all entity or entity reference field.

Tips

  • Use {{ dump(_context) }} to debug avaliable variables in twig template.
  • Twig edit format settings in /admin/config/development/entity-theme-engine

Recommended modules

Similar modules

Depends on

Dependencies of the latest stable release

  • block Drupal core
  • node Drupal core
  • serialization Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Sep 2026
Latest release
2 hours ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
2.0.1 Stable 8–11 Sep 3, 2026
2.0.0 Stable 10–11 Sep 3, 2026