You are here

public function BlockFieldManager::__construct in Block field 8

Constructs a new BlockFieldManager.

Parameters

\Drupal\Core\Block\BlockManagerInterface $block_manager: The block plugin manager.

\Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository: The context repository.

File

src/BlockFieldManager.php, line 35

Class

BlockFieldManager
Defines a service that manages block plugins for the block field.

Namespace

Drupal\block_field

Code

public function __construct(BlockManagerInterface $block_manager, ContextRepositoryInterface $context_repository) {
  $this->blockManager = $block_manager;
  $this->contextRepository = $context_repository;
}