You are here

public function VariantPluginAddBlockForm::__construct in Page Manager 8.4

Same name and namespace in other branches
  1. 8 page_manager_ui/src/Form/VariantPluginAddBlockForm.php \Drupal\page_manager_ui\Form\VariantPluginAddBlockForm::__construct()

Constructs a new VariantPluginFormBase.

Parameters

\Drupal\Core\TempStore\SharedTempStoreFactory $tempstore: The shared temp store.

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

Overrides VariantPluginConfigureBlockFormBase::__construct

File

page_manager_ui/src/Form/VariantPluginAddBlockForm.php, line 31

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;
}