Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Layout.php

Layout::$template

The template file to render this layout (relative to the 'path' given).

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

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

See also

hook_theme()

File

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

Class

Layout
Defines a Layout annotation object.

Namespace

Drupal\Core\Layout\Annotation

Code

public $template;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal