function BlockContent::__construct
Same name in other branches
- 8.9.x 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()
- 11.x 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.