You are here

public function BlockContentController::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/block_content/src/Controller/BlockContentController.php \Drupal\block_content\Controller\BlockContentController::__construct()

Constructs a BlockContent object.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $block_content_storage: The custom block storage.

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

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

File

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

Class

BlockContentController

Namespace

Drupal\block_content\Controller

Code

public function __construct(EntityStorageInterface $block_content_storage, EntityStorageInterface $block_content_type_storage, ThemeHandlerInterface $theme_handler) {
  $this->blockContentStorage = $block_content_storage;
  $this->blockContentTypeStorage = $block_content_type_storage;
  $this->themeHandler = $theme_handler;
}