BlockContentController::__construct

public BlockContentController::__construct(EntityStorageInterface $block_content_storage, EntityStorageInterface $block_content_type_storage, ThemeHandlerInterface $theme_handler)

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;
}
doc_Drupal
2016-10-29 08:46:50
Comments
Leave a Comment

Please login to continue.