You are here

public function PanelsIPEBlockPluginForm::__construct in Panels 8.4

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

Constructs a new PanelsIPEBlockPluginForm.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $block_manager:

\Drupal\Core\Plugin\Context\ContextHandlerInterface $context_handler:

\Drupal\Core\Render\RendererInterface $renderer:

\Drupal\Core\TempStore\SharedTempStoreFactory $temp_store_factory:

File

panels_ipe/src/Form/PanelsIPEBlockPluginForm.php, line 62

Class

PanelsIPEBlockPluginForm
Provides a form for adding a block plugin temporarily using AJAX.

Namespace

Drupal\panels_ipe\Form

Code

public function __construct(PluginManagerInterface $block_manager, ContextHandlerInterface $context_handler, RendererInterface $renderer, SharedTempStoreFactory $temp_store_factory) {
  $this->blockManager = $block_manager;
  $this->contextHandler = $context_handler;
  $this->renderer = $renderer;
  $this->tempStore = $temp_store_factory
    ->get('panels_ipe');
}