public function BlockContent::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/block_content/src/Plugin/Derivative/BlockContent.php \Drupal\block_content\Plugin\Derivative\BlockContent::__construct()
- 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\DerivativeCode
public function __construct(EntityStorageInterface $block_content_storage) {
$this->blockContentStorage = $block_content_storage;
}