9. Twig Extension

This bundle provides Twig global variables in your project. See below for more details.

9.1. Global variables

  • tenant - provides data about the current website/tenant. This variable is an object of type TenantInterface

Usage:

1
2
3
4
{{ tenant.name }}
{{ tenant.subdomain }}
{{ tenant.organization.name }} # get tenant's organization name
{# ... #}