You are here

public property Layout::$theme_hook in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Layout/Annotation/Layout.php \Drupal\Core\Layout\Annotation\Layout::theme_hook
  2. 9 core/lib/Drupal/Core/Layout/Annotation/Layout.php \Drupal\Core\Layout\Annotation\Layout::theme_hook

The theme hook used to render this layout.

This property is optional and it does not need to be declared.

If specified, it's assumed that the module or theme registering this layout will also register the theme hook with hook_theme() itself. This is mutually exclusive with 'template' - you can't specify both.

Type: string

See also

hook_theme()

File

core/lib/Drupal/Core/Layout/Annotation/Layout.php, line 97

Class

Layout
Defines a Layout annotation object.

Namespace

Drupal\Core\Layout\Annotation

Code

public $theme_hook = 'layout';