Layout::$theme_hook
Same name in other branches
- 9 core/lib/Drupal/Core/Layout/Annotation/Layout.php \Drupal\Core\Layout\Annotation\Layout::theme_hook
- 10 core/lib/Drupal/Core/Layout/Annotation/Layout.php \Drupal\Core\Layout\Annotation\Layout::theme_hook
- 11.x 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
File
-
core/
lib/ Drupal/ Core/ Layout/ Annotation/ Layout.php, line 91
Class
- Layout
- Defines a Layout annotation object.
Namespace
Drupal\Core\Layout\AnnotationCode
public $theme_hook = 'layout';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.