function 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 47 
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.
