You are here

protected function LayoutListBuilder::getRouteParameters in Layout builder library 8

1 call to LayoutListBuilder::getRouteParameters()
LayoutListBuilder::getLayoutBuilderUrl in src/Entity/LayoutListBuilder.php

File

src/Entity/LayoutListBuilder.php, line 131

Class

LayoutListBuilder
Defines a list builder for layouts.

Namespace

Drupal\layout_library\Entity

Code

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