function BlockContent::__construct

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

File

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

Class

BlockContent
Retrieves block plugin definitions for all content blocks.

Namespace

Drupal\block_content\Plugin\Derivative

Code

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

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