function AddSectionController::create
Same name in other branches
- 9 core/modules/layout_builder/src/Controller/AddSectionController.php \Drupal\layout_builder\Controller\AddSectionController::create()
- 8.9.x core/modules/layout_builder/src/Controller/AddSectionController.php \Drupal\layout_builder\Controller\AddSectionController::create()
- 11.x core/modules/layout_builder/src/Controller/AddSectionController.php \Drupal\layout_builder\Controller\AddSectionController::create()
Overrides ContainerInjectionInterface::create
File
-
core/
modules/ layout_builder/ src/ Controller/ AddSectionController.php, line 44
Class
- AddSectionController
- Defines a controller to add a new section.
Namespace
Drupal\layout_builder\ControllerCode
public static function create(ContainerInterface $container) {
return new static($container->get('layout_builder.tempstore_repository'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.