You are here

public function BlockContent::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/block_content/src/Plugin/Derivative/BlockContent.php \Drupal\block_content\Plugin\Derivative\BlockContent::__construct()
  2. 10 core/modules/block_content/src/Plugin/Derivative/BlockContent.php \Drupal\block_content\Plugin\Derivative\BlockContent::__construct()

Constructs a BlockContent object.

Parameters

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

File

core/modules/block_content/src/Plugin/Derivative/BlockContent.php, line 28

Class

BlockContent
Retrieves block plugin definitions for all custom blocks.

Namespace

Drupal\block_content\Plugin\Derivative

Code

public function __construct(EntityStorageInterface $block_content_storage) {
  $this->blockContentStorage = $block_content_storage;
}