function BlockContentController::__construct

Same name and namespace in other branches
  1. 11.x core/modules/block_content/src/Controller/BlockContentController.php \Drupal\block_content\Controller\BlockContentController::__construct()
  2. 10 core/modules/block_content/src/Controller/BlockContentController.php \Drupal\block_content\Controller\BlockContentController::__construct()
  3. 9 core/modules/block_content/src/Controller/BlockContentController.php \Drupal\block_content\Controller\BlockContentController::__construct()
  4. 8.9.x core/modules/block_content/src/Controller/BlockContentController.php \Drupal\block_content\Controller\BlockContentController::__construct()

Constructs a BlockContent object.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $blockContentStorage: The content block storage.

\Drupal\Core\Entity\EntityStorageInterface $blockContentTypeStorage: The block type storage.

\Drupal\Core\Extension\ThemeHandlerInterface $themeHandler: The theme handler.

File

core/modules/block_content/src/Controller/BlockContentController.php, line 41

Class

BlockContentController
Controller routines for custom block routes.

Namespace

Drupal\block_content\Controller

Code

public function __construct(protected EntityStorageInterface $blockContentStorage, protected EntityStorageInterface $blockContentTypeStorage, protected ThemeHandlerInterface $themeHandler) {
}

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