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 %}
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.
More in the Domain ecosystem
Most installed first