function MoveBlockController::create

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

Overrides ContainerInjectionInterface::create

File

core/modules/layout_builder/src/Controller/MoveBlockController.php, line 40

Class

MoveBlockController
Defines a controller to move a block.

Namespace

Drupal\layout_builder\Controller

Code

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.