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 %}
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.