function ChooseSectionController::create

Same name in other branches
  1. 8.9.x core/modules/layout_builder/src/Controller/ChooseSectionController.php \Drupal\layout_builder\Controller\ChooseSectionController::create()
  2. 10 core/modules/layout_builder/src/Controller/ChooseSectionController.php \Drupal\layout_builder\Controller\ChooseSectionController::create()
  3. 11.x core/modules/layout_builder/src/Controller/ChooseSectionController.php \Drupal\layout_builder\Controller\ChooseSectionController::create()

Overrides ContainerInjectionInterface::create

File

core/modules/layout_builder/src/Controller/ChooseSectionController.php, line 49

Class

ChooseSectionController
Defines a controller to choose a new section.

Namespace

Drupal\layout_builder\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('plugin.manager.core.layout'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.