public function SectionStorageInterface::buildRoutes in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/SectionStorageInterface.php \Drupal\layout_builder\SectionStorageInterface::buildRoutes()
- 9 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
2 methods override SectionStorageInterface::buildRoutes()
- 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);