Layout::$template
Same name in other branches
- 9 core/lib/Drupal/Core/Layout/Annotation/Layout.php \Drupal\Core\Layout\Annotation\Layout::template
- 10 core/lib/Drupal/Core/Layout/Annotation/Layout.php \Drupal\Core\Layout\Annotation\Layout::template
- 11.x core/lib/Drupal/Core/Layout/Annotation/Layout.php \Drupal\Core\Layout\Annotation\Layout::template
The template file to render this layout (relative to the 'path' given).
If specified, then the layout_discovery module will register the template with hook_theme() and the module or theme registering this layout does not need to do it.
Type: string optional
See also
File
-
core/
lib/ Drupal/ Core/ Layout/ Annotation/ Layout.php, line 78
Class
- Layout
- Defines a Layout annotation object.
Namespace
Drupal\Core\Layout\AnnotationCode
public $template;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.