Layout::$theme_hook
Same name in other branches
- 8.9.x 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.
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
File
-
core/
lib/ Drupal/ Core/ Layout/ Annotation/ Layout.php, line 97
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.