You are here

public function BlockPreviewRenderer::__construct in Panopoly Magic 8.2

BlockPreviewRenderer constructor.

Parameters

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

\Drupal\Core\Plugin\Context\ContextHandlerInterface $context_handler: The context handler.

File

src/BlockPreviewRenderer.php, line 41

Class

BlockPreviewRenderer
A service for rendering block previews.

Namespace

Drupal\panopoly_magic

Code

public function __construct(BlockManagerInterface $block_manager, ContextHandlerInterface $context_handler) {
  $this->blockManager = $block_manager;
  $this->contextHandler = $context_handler;
}