You are here

public function SectionStorageInterface::buildRoutes in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/SectionStorageInterface.php \Drupal\layout_builder\SectionStorageInterface::buildRoutes()
  2. 10 core/modules/layout_builder/src/SectionStorageInterface.php \Drupal\layout_builder\SectionStorageInterface::buildRoutes()

Provides the routes needed for Layout Builder UI.

Allows the plugin to add or alter routes during the route building process. \Drupal\layout_builder\Routing\LayoutBuilderRoutesTrait is provided for the typical use case of building a standard Layout Builder UI.

Parameters

\Symfony\Component\Routing\RouteCollection $collection: The route collection.

See also

\Drupal\Core\Routing\RoutingEvents::ALTER

4 methods override SectionStorageInterface::buildRoutes()
DefaultsSectionStorage::buildRoutes in core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
Provides the routes needed for Layout Builder UI.
OverridesSectionStorage::buildRoutes in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
Provides the routes needed for Layout Builder UI.
SimpleConfigSectionStorage::buildRoutes in core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/SimpleConfigSectionStorage.php
Provides the routes needed for Layout Builder UI.
TestStateBasedSectionStorage::buildRoutes in core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/TestStateBasedSectionStorage.php
Provides the routes needed for Layout Builder UI.

File

core/modules/layout_builder/src/SectionStorageInterface.php, line 68

Class

SectionStorageInterface
Defines an interface for Section Storage type plugins.

Namespace

Drupal\layout_builder

Code

public function buildRoutes(RouteCollection $collection);