Skip to content

Routing definition helpers

Helper module provides some additional features when defining routes.

Requirements

is_multilingual

Checks if the site is multilingual or not.

Usage

my_module.my_route:
  defaults:
    _controller: \Drupal\my_module\Controller\MyController::renderRoute'
  requirements:
    _is_multilingual: TRUE

This is also used by the tmgmt_hide_if_not_multilingual helper to alter the tmgmt.admin route.