public function SimpleConfigSectionStorage::buildRoutes in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/SimpleConfigSectionStorage.php \Drupal\layout_builder_test\Plugin\SectionStorage\SimpleConfigSectionStorage::buildRoutes()
- 9 core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/SimpleConfigSectionStorage.php \Drupal\layout_builder_test\Plugin\SectionStorage\SimpleConfigSectionStorage::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.
Overrides SectionStorageInterface::buildRoutes
See also
\Drupal\Core\Routing\RoutingEvents::ALTER
File
- core/
modules/ layout_builder/ tests/ modules/ layout_builder_test/ src/ Plugin/ SectionStorage/ SimpleConfigSectionStorage.php, line 137
Class
- SimpleConfigSectionStorage
- Provides section storage utilizing simple config.
Namespace
Drupal\layout_builder_test\Plugin\SectionStorageCode
public function buildRoutes(RouteCollection $collection) {
$this
->buildLayoutRoutes($collection, $this
->getPluginDefinition(), 'layout-builder-test-simple-config/{id}');
}