You are here

function ContextReactionBlocksController::__construct in Context 8.0

Same name and namespace in other branches
  1. 8.4 src/Reaction/Blocks/Controller/ContextReactionBlocksController.php \Drupal\context\Reaction\Blocks\Controller\ContextReactionBlocksController::__construct()
  2. 8 src/Reaction/Blocks/Controller/ContextReactionBlocksController.php \Drupal\context\Reaction\Blocks\Controller\ContextReactionBlocksController::__construct()

Construct.

Parameters

\Drupal\Core\Block\BlockManagerInterface $blockManager:

\Drupal\Core\Plugin\Context\ContextRepositoryInterface $contextRepository:

\Drupal\Core\Extension\ThemeHandlerInterface $themeHandler:

\Drupal\context\ContextManager $contextManager:

File

src/Reaction/Blocks/Controller/ContextReactionBlocksController.php, line 49

Class

ContextReactionBlocksController

Namespace

Drupal\context\Reaction\Blocks\Controller

Code

function __construct(BlockManagerInterface $blockManager, ContextRepositoryInterface $contextRepository, ThemeHandlerInterface $themeHandler, ContextManager $contextManager) {
  $this->blockManager = $blockManager;
  $this->contextRepository = $contextRepository;
  $this->themeHandler = $themeHandler;
  $this->contextManager = $contextManager;
}