toolbar.twig

Default template for admin toolbar.

Available variables:

  • tabs: Themed links for the top level tabs.
  • trays: An array of trays. It contains:
    • content: The themed tray content.
    • attributes: HTML attributes for the surrounding element. It includes:
      • id: The unique id of the tray. This corresponds to the module name registered the tray.
      • class: A list of classes to target the trays for styling.
  • attributes: HTML attributes for the surrounding element. It includes:
    • id: The unique id of the toolbar.
    • class: A list of classes to target the toolbar for styling.

See also

template_preprocess()

template_preprocess_toolbar()

File

drupal/core/modules/toolbar/templates/toolbar.twig
View source

Related topics