public function PanelsIPEPageController::__construct in Panels 8.4
Same name and namespace in other branches
- 8.3 panels_ipe/src/Controller/PanelsIPEPageController.php \Drupal\panels_ipe\Controller\PanelsIPEPageController::__construct()
Constructs a new PanelsIPEController.
Parameters
\Drupal\Core\Block\BlockManagerInterface $block_manager:
\Drupal\Core\Render\RendererInterface $renderer:
\Drupal\Core\Layout\LayoutPluginManagerInterface $layout_plugin_manager:
\Drupal\panels\Storage\PanelsStorageManagerInterface $panels_storage_manager:
\Drupal\Core\TempStore\SharedTempStore $temp_store_factory:
\Drupal\Core\Plugin\Context\ContextHandlerInterface $context_handler:
File
- panels_ipe/
src/ Controller/ PanelsIPEPageController.php, line 81
Class
- PanelsIPEPageController
- Contains all JSON endpoints required for Panels IPE + Page Manager.
Namespace
Drupal\panels_ipe\ControllerCode
public function __construct(BlockManagerInterface $block_manager, RendererInterface $renderer, LayoutPluginManagerInterface $layout_plugin_manager, PanelsStorageManagerInterface $panels_storage_manager, SharedTempStoreFactory $temp_store_factory, ContextHandlerInterface $context_handler) {
$this->blockManager = $block_manager;
$this->renderer = $renderer;
$this->layoutPluginManager = $layout_plugin_manager;
$this->panelsStorage = $panels_storage_manager;
$this->tempStore = $temp_store_factory
->get('panels_ipe');
$this->contextHandler = $context_handler;
$this->updateLayoutRequestHandler = new UpdateLayoutRequestHandler($this
->moduleHandler(), $this->panelsStorage, $this->tempStore);
$this->removeBlockRequestHandler = new RemoveBlockRequestHandler($this
->moduleHandler(), $this->panelsStorage, $this->tempStore);
}