You are here

public function BlockFormBase::__construct in Context 8.0

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

Constructs a new VariantPluginFormBase.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $block_manager: The block manager.

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

\Drupal\Core\Extension\ThemeHandlerInterface $themeHandler:

\Drupal\Core\Form\FormBuilderInterface $formBuilder:

\Drupal\context\ContextReactionManager $contextReactionManager:

\Drupal\context\ContextManager $contextManager:

File

src/Reaction/Blocks/Form/BlockFormBase.php, line 94

Class

BlockFormBase

Namespace

Drupal\context\Reaction\Blocks\Form

Code

public function __construct(PluginManagerInterface $block_manager, ContextRepositoryInterface $contextRepository, ThemeHandlerInterface $themeHandler, FormBuilderInterface $formBuilder, ContextReactionManager $contextReactionManager, ContextManager $contextManager) {
  $this->blockManager = $block_manager;
  $this->contextRepository = $contextRepository;
  $this->themeHandler = $themeHandler;
  $this->formBuilder = $formBuilder;
  $this->contextReactionManager = $contextReactionManager;
  $this->contextManager = $contextManager;
}