Skip to content

Tokens

The tokens the Sites modules provide.

current-site (Sites (sites))

The site the page is shown on, or the site given in the token data.

Token Name Description
[current-site:id] Site ID The unique identifier of the current site.
[current-site:label] Site name The name of the site.
[current-site:is-hub] Is hub 1 when the site is the hub, 0 otherwise.
[current-site:url] URL The base URL of the site.
[current-site:logo-url] Logo URL The absolute URL of the site's logo, empty when it has none.
[current-site:favicon-url] Favicon URL The absolute URL of the site's favicon, empty when it has none.
[current-site:settings] Settings The settings of the site.

site-settings (Sites (sites))

A site's setting values, one token per setting key.

Token Name Description
[site-settings:admin_theme] Admin theme The value of the Admin theme setting (admin_theme).
[site-settings:canonical_by_weight] Origin site by weight The value of the Origin site by weight setting (canonical_by_weight).
[site-settings:canonical_tag] Canonical link The value of the Canonical link setting (canonical_tag).
[site-settings:clone_menu_links] Copy menu links The value of the Copy menu links setting (clone_menu_links).
[site-settings:cloning:{entity_type}:{bundle}] Clone method for content of a type The value of the setting, one token per key.
[site-settings:content:{entity_type}:{bundle}] Whether content of a type may belong to the site The value of the setting, one token per key.
[site-settings:content_overrides_field_names__{entity_type}] Overridable fields of an entity type The value of the setting, one token per key.
[site-settings:content_overrides_on_canonical] Overrides on the original The value of the Overrides on the original setting (content_overrides_on_canonical).
[site-settings:default_content_types] Default content types The value of the Default content types setting (default_content_types).
[site-settings:default_language] Default language The value of the Default language setting (default_language).
[site-settings:detection] Detection methods The value of the Detection methods setting (detection).
[site-settings:disable_tracking] Disable tracking The value of the Disable tracking setting (disable_tracking).
[site-settings:favicon_path] Favicon The value of the Favicon setting (favicon_path).
[site-settings:filter_references] Filter references by the active site The value of the Filter references by the active site setting (filter_references).
[site-settings:filter_views] Filter listings by the active site The value of the Filter listings by the active site setting (filter_views).
[site-settings:ga4_measurement_id] Google Analytics 4 measurement ID The value of the Google Analytics 4 measurement ID setting (ga4_measurement_id).
[site-settings:google_tag_container] Google Tag container The value of the Google Tag container setting (google_tag_container).
[site-settings:gtm_container_id] Google Tag Manager container ID The value of the Google Tag Manager container ID setting (gtm_container_id).
[site-settings:hostname] Hostname The value of the Hostname setting (hostname).
[site-settings:hostname_aliases] Hostname aliases The value of the Hostname aliases setting (hostname_aliases).
[site-settings:id] Site ID The value of the Site ID setting (id).
[site-settings:inherit_source] Inherit from The value of the Inherit from setting (inherit_source).
[site-settings:languages] Enabled languages The value of the Enabled languages setting (languages).
[site-settings:logo_path] Logo The value of the Logo setting (logo_path).
[site-settings:main_site_id] Main site The value of the Main site setting (main_site_id).
[site-settings:main_site_participation] Run by the main site's people The value of the Run by the main site's people setting (main_site_participation).
[site-settings:matomo_site_id] Matomo site ID The value of the Matomo site ID setting (matomo_site_id).
[site-settings:matomo_url] Matomo URL The value of the Matomo URL setting (matomo_url).
[site-settings:per_site_menu:{menu}] Whether the site has its own links in a menu The value of the setting, one token per key.
[site-settings:per_site_role:{role}] Whether the role can be assigned on the site The value of the setting, one token per key.
[site-settings:prefix] Path prefix The value of the Path prefix setting (prefix).
[site-settings:region_key] Region The value of the Region setting (region_key).
[site-settings:robotstxt] robots.txt content The value of the robots.txt content setting (robotstxt).
[site-settings:selected_langcode] Selected language The value of the Selected language setting (selected_langcode).
[site-settings:session_parameter] Session parameter The value of the Session parameter setting (session_parameter).
[site-settings:simple_sitemap:bundle_settings:{variant}:{entity_type}:{bundle}] Sitemap settings of a content type The value of the setting, one token per key.
[site-settings:site_403] Default 403 (access denied) page The value of the Default 403 (access denied) page setting (site_403).
[site-settings:site_404] Default 404 (not found) page The value of the Default 404 (not found) page setting (site_404).
[site-settings:site_frontpage] Default front page The value of the Default front page setting (site_frontpage).
[site-settings:site_mail] Email address The value of the Email address setting (site_mail).
[site-settings:site_name] Site name The value of the Site name setting (site_name).
[site-settings:site_slogan] Slogan The value of the Slogan setting (site_slogan).
[site-settings:site_type] Structure The value of the Structure setting (site_type).
[site-settings:theme] Theme The value of the Theme setting (theme).
[site-settings:thumbnail] Thumbnail The value of the Thumbnail setting (thumbnail).
[site-settings:title] Title The value of the Title setting (title).
[site-settings:url_domains] URL language domains The value of the URL language domains setting (url_domains).
[site-settings:url_prefixes] URL path prefixes The value of the URL path prefixes setting (url_prefixes).
[site-settings:url_source] URL language source The value of the URL language source setting (url_source).
[site-settings:weight] Weight The value of the Weight setting (weight).

Last updated 2026-11-02