function SectionStorageInterface::buildRoutes
Same name in other branches
- 9 core/modules/layout_builder/src/SectionStorageInterface.php \Drupal\layout_builder\SectionStorageInterface::buildRoutes()
- 10 core/modules/layout_builder/src/SectionStorageInterface.php \Drupal\layout_builder\SectionStorageInterface::buildRoutes()
- 11.x 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_builderCode
public function buildRoutes(RouteCollection $collection);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.