Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Media Entity Twig

2 sites Security covered Drupal 10–11
View on drupal.org

This module allows you to use Twig templates as media items within Drupal. This enables you to reuse custom-built interactive components as media, similar to how you would use images or videos, making them available anywhere media can be placed on your site.

The Media Entity Twig module provides a powerful way to add Twig templates, content and components as media items that can be re-used anywhere you can add media.

This can be useful if you've built interactive components that you want to feature instead of more traditional media such as images and video.

This module is designed for Drupal 10.3+ and is ideal for theme developers, frontend engineers, site builders and anyone needing to add twig things to be used and reused as media items.

Usage:

  1. Require the module into your project via Composer: composer require drupal/media_entity_twig.
  2. Enable the module in the UI: /admin/modules#module-media-entity-twig or via drush: drush en media_entity_twig
  3. Go to media types /admin/structure/media and you will see a new media type called Twig.
  4. A default twig field is automatically added with default field settings. You can now customise or add additional fields at /admin/structure/media/manage/twig/fields
  5. You can now add media of type twig in addition to the default media types such as image and video.

Additional Requirements

This module requires Drupal's core image, media, media_library, and path modules as well as the contrib module twig_field.

Community Documentation

I will provide a YouTube walkthrough of the functionality this module provides soon!

Supporting organisation

Pivale are a globally trusted web development company who build Drupal CMS websites and software.

Depends on

Dependencies of the latest stable release

  • twig_field
  • image Drupal core
  • media Drupal core
  • media_library Drupal core
  • path Drupal core
  • system Drupal core >=10.3

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
May 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 6
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Jun 9, 2025
1.0.0-beta2 Pre-release 10–11 May 30, 2025
1.0.0-beta1 Pre-release 10–11 May 30, 2025
1.0.0-alpha2 Pre-release 10–11 May 28, 2025
1.0.x-dev Dev 10–11 May 28, 2025
1.0.0-alpha1 Pre-release 11 May 28, 2025