public function BrowserController::__construct in Layout Builder Browser 8
BrowserController constructor.
Parameters
\Drupal\Core\Block\BlockManagerInterface $block_manager: The block manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
File
- src/
Controller/ BrowserController.php, line 72
Class
- BrowserController
- Class BrowserController.
Namespace
Drupal\layout_builder_browser\ControllerCode
public function __construct(BlockManagerInterface $block_manager, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, AccountInterface $current_user = NULL) {
$this->blockManager = $block_manager;
$this->entityTypeManager = $entity_type_manager;
$this->entityTypeBundleInfo = $entity_type_bundle_info;
$this->currentUser = $current_user;
}