You are here

public function ContextReactionBlocksController::__construct in Context 8.4

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

Constructs a new ContextReactionBlocksController object.

Parameters

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

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

\Drupal\Core\Extension\ThemeHandlerInterface $themeHandler: The handler of the available themes.

\Drupal\context\ContextManager $contextManager: The Context modules context manager.

File

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

Class

ContextReactionBlocksController
The controller for the Block Context Reaction.

Namespace

Drupal\context\Reaction\Blocks\Controller

Code

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