You are here

public function Layout::get in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Layout/Annotation/Layout.php \Drupal\Core\Layout\Annotation\Layout::get()
  2. 10 core/lib/Drupal/Core/Layout/Annotation/Layout.php \Drupal\Core\Layout\Annotation\Layout::get()

Gets the value of an annotation.

Overrides Plugin::get

File

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

Class

Layout
Defines a Layout annotation object.

Namespace

Drupal\Core\Layout\Annotation

Code

public function get() {
  return new LayoutDefinition($this->definition);
}