Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Domain Twig

No security coverage Maintenance fixes only 22 sites

Part of the Domain ecosystem · 53 projects

This module provides a Twig function to easily access the current domain's ID within your templates. This allows you to conditionally display content or apply different styling based on the active domain.

Provides Twig Function to get current domain

{% set domain_id = domain().id %}

{% if domain_id == 'example' %}
  <h2>Cool stuff, huh!</h2>
{% endif %}
Drupal 8, 10–11

Ask your assistant about Domain Twig

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

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

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

Releases

Version Type Core PHP Release date
1.0.1 Stable 8, 10–11 Aug 28, 2025
1.0.x-dev Dev 8, 10–11 Aug 28, 2025