You are here

public function BlockFormBase::__construct in Context 8.4

Same name and namespace in other branches
  1. 8 src/Reaction/Blocks/Form/BlockFormBase.php \Drupal\context\Reaction\Blocks\Form\BlockFormBase::__construct()
  2. 8.0 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: The Drupal context repository.

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

\Drupal\Core\Form\FormBuilderInterface $formBuilder: The form builder.

\Drupal\context\ContextReactionManager $contextReactionManager: The context reaction manager.

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

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The current request.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.

File

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

Class

BlockFormBase
Provides a Block Form Base for blocks reactions.

Namespace

Drupal\context\Reaction\Blocks\Form

Code

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