public function PanelsAddBlockForm::__construct in Panels 8.3
Same name and namespace in other branches
- 8.4 src/Form/PanelsAddBlockForm.php \Drupal\panels\Form\PanelsAddBlockForm::__construct()
PanelsAddBlockForm constructor.
Parameters
\Drupal\user\SharedTempStoreFactory $tempstore: The tempstore factory.
\Drupal\Component\Plugin\PluginManagerInterface $block_manager: The block plugin manager.
Overrides PanelsBlockConfigureFormBase::__construct
File
- src/
Form/ PanelsAddBlockForm.php, line 35
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;
}