You are here

public function PanelsAddBlockForm::__construct in Panels 8.4

Same name and namespace in other branches
  1. 8.3 src/Form/PanelsAddBlockForm.php \Drupal\panels\Form\PanelsAddBlockForm::__construct()

PanelsAddBlockForm constructor.

Parameters

\Drupal\Core\TempStore\SharedTempStoreFactory $tempstore: The tempstore factory.

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

Overrides PanelsBlockConfigureFormBase::__construct

File

src/Form/PanelsAddBlockForm.php, line 31

Class

PanelsAddBlockForm
Provides a form for adding a block plugin to a variant.

Namespace

Drupal\panels\Form

Code

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