function BlockContentController::__construct

Same name in other branches
  1. 9 core/modules/block_content/src/Controller/BlockContentController.php \Drupal\block_content\Controller\BlockContentController::__construct()
  2. 8.9.x core/modules/block_content/src/Controller/BlockContentController.php \Drupal\block_content\Controller\BlockContentController::__construct()
  3. 10 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 content block storage.

\Drupal\Core\Entity\EntityStorageInterface $block_content_type_storage: The 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;
}

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