function ChooseBlockController::__construct
Same name in other branches
- 9 core/modules/layout_builder/src/Controller/ChooseBlockController.php \Drupal\layout_builder\Controller\ChooseBlockController::__construct()
- 8.9.x core/modules/layout_builder/src/Controller/ChooseBlockController.php \Drupal\layout_builder\Controller\ChooseBlockController::__construct()
- 11.x core/modules/layout_builder/src/Controller/ChooseBlockController.php \Drupal\layout_builder\Controller\ChooseBlockController::__construct()
ChooseBlockController constructor.
Parameters
\Drupal\Core\Block\BlockManagerInterface $block_manager: The block manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
File
-
core/
modules/ layout_builder/ src/ Controller/ ChooseBlockController.php, line 61
Class
- ChooseBlockController
- Defines a controller to choose a new block.
Namespace
Drupal\layout_builder\ControllerCode
public function __construct(BlockManagerInterface $block_manager, EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user) {
$this->blockManager = $block_manager;
$this->entityTypeManager = $entity_type_manager;
$this->currentUser = $current_user;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.