You are here

public function VariantPluginAddBlockForm::__construct in Page Manager 8

Same name and namespace in other branches
  1. 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\Form

Code

public function __construct(SharedTempStoreFactory $tempstore, PluginManagerInterface $block_manager) {
  parent::__construct($tempstore);
  $this->blockManager = $block_manager;
}