You are here

public function SimpleBlock::__construct in Simple Block 8

Constructs a BlockContent object.

Parameters

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

File

src/Plugin/Derivative/SimpleBlock.php, line 28

Class

SimpleBlock
Retrieves block plugin definitions for all custom config blocks.

Namespace

Drupal\simple_block\Plugin\Derivative

Code

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