You are here

public property Layout::$theme_hook in Drupal 9

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

The theme hook used to render this layout.

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 optional

See also

hook_theme()

File

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

Class

Layout
Defines a Layout annotation object.

Namespace

Drupal\Core\Layout\Annotation

Code

public $theme_hook = 'layout';