public function BlockFormBase::__construct in Context 8
Same name and namespace in other branches
- 8.4 src/Reaction/Blocks/Form/BlockFormBase.php \Drupal\context\Reaction\Blocks\Form\BlockFormBase::__construct()
- 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:
\Drupal\Core\Extension\ThemeHandlerInterface $themeHandler:
\Drupal\Core\Form\FormBuilderInterface $formBuilder:
\Drupal\context\ContextReactionManager $contextReactionManager:
\Drupal\context\ContextManager $contextManager:
\Symfony\Component\HttpFoundation\RequestStack $requestStack:
File
- src/
Reaction/ Blocks/ Form/ BlockFormBase.php, line 103
Class
Namespace
Drupal\context\Reaction\Blocks\FormCode
public function __construct(PluginManagerInterface $block_manager, ContextRepositoryInterface $contextRepository, ThemeHandlerInterface $themeHandler, FormBuilderInterface $formBuilder, ContextReactionManager $contextReactionManager, ContextManager $contextManager, RequestStack $requestStack) {
$this->blockManager = $block_manager;
$this->contextRepository = $contextRepository;
$this->themeHandler = $themeHandler;
$this->formBuilder = $formBuilder;
$this->contextReactionManager = $contextReactionManager;
$this->contextManager = $contextManager;
$this->request = $requestStack
->getCurrentRequest();
}