You are here

protected function Library::getLayout in Layout builder library 8

Gets the layout.

Return value

\Drupal\layout_builder\SectionListInterface|\Drupal\layout_library\Entity\Layout Layout.

2 calls to Library::getLayout()
Library::getContextsDuringPreview in src/Plugin/SectionStorage/Library.php
Gets contexts for use during preview.
Library::getRouteParameters in src/Plugin/SectionStorage/Library.php

File

src/Plugin/SectionStorage/Library.php, line 94

Class

Library
Defines a class for library based layout storage.

Namespace

Drupal\layout_library\Plugin\SectionStorage

Code

protected function getLayout() {
  return $this
    ->getSectionList();
}