You are here

protected function Library::getRouteParameters in Layout builder library 8

1 call to Library::getRouteParameters()
Library::getLayoutBuilderUrl in src/Plugin/SectionStorage/Library.php
Gets the URL used to display the Layout Builder UI.

File

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

Class

Library
Defines a class for library based layout storage.

Namespace

Drupal\layout_library\Plugin\SectionStorage

Code

protected function getRouteParameters() {
  $layout = $this
    ->getLayout();
  $route_parameters = FieldUI::getRouteBundleParameter($this->entityTypeManager
    ->getDefinition($layout
    ->getTargetEntityType()), $layout
    ->getTargetBundle());
  $route_parameters['layout'] = $this
    ->getLayout()
    ->id();
  return $route_parameters;
}