public function VariantPluginAddBlockForm::__construct in Page Manager 8
Same name and namespace in other branches
- 8.4 page_manager_ui/src/Form/VariantPluginAddBlockForm.php \Drupal\page_manager_ui\Form\VariantPluginAddBlockForm::__construct()
Constructs a new VariantPluginFormBase.
Parameters
\Drupal\Component\Plugin\PluginManagerInterface $block_manager: The block manager.
Overrides VariantPluginConfigureBlockFormBase::__construct
File
- page_manager_ui/
src/ Form/ VariantPluginAddBlockForm.php, line 35 - Contains \Drupal\page_manager_ui\Form\VariantPluginAddBlockForm.
Class
- VariantPluginAddBlockForm
- Provides a form for adding a block plugin to a variant.
Namespace
Drupal\page_manager_ui\FormCode
public function __construct(SharedTempStoreFactory $tempstore, PluginManagerInterface $block_manager) {
parent::__construct($tempstore);
$this->blockManager = $block_manager;
}