Drupal is a registered trademark of Dries Buytaert

domain_twig

17 sites No security coverage
View on drupal.org

Provides Twig Function to get current domain

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

{% if domain_id == 'example' %}
  <h2>Cool stuff, huh!</h2>
{% endif %}

Activity

Total releases
2
First release
Aug 2025
Latest release
6 months ago
Release cadence
0 days
Stability
50% stable

Releases

Version Type Release date
1.0.1 Stable Aug 28, 2025
1.0.x-dev Dev Aug 28, 2025