public function PanelsAddBlockForm::__construct in Panels 8.4
Same name and namespace in other branches
- 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\FormCode
public function __construct(SharedTempStoreFactory $tempstore, PluginManagerInterface $block_manager) {
parent::__construct($tempstore);
$this->blockManager = $block_manager;
}