You are here

public function InPlaceEditorDisplayBuilder::__construct in Panels 8.4

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

Constructs a new InPlaceEditorDisplayBuilder.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin definition.

\Drupal\Core\Plugin\Context\ContextHandlerInterface $context_handler: The context handler.

\Drupal\Core\Session\AccountInterface $account: The current user.

\Drupal\Core\TempStore\SharedTempStoreFactory $temp_store_factory: The factory for the temp store object.

\Drupal\panels\Storage\PanelsStorageManagerInterface: The Panels storage manager.

Overrides StandardDisplayBuilder::__construct

File

panels_ipe/src/Plugin/DisplayBuilder/InPlaceEditorDisplayBuilder.php, line 56

Class

InPlaceEditorDisplayBuilder
The In-place editor display builder for viewing and editing a PanelsDisplayVariant in the same place.

Namespace

Drupal\panels_ipe\Plugin\DisplayBuilder

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ContextHandlerInterface $context_handler, AccountInterface $account, ModuleHandlerInterface $module_handler, SharedTempStoreFactory $temp_store_factory, PanelsStorageManagerInterface $panels_storage) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $context_handler, $account, $module_handler);
  $this->tempStore = $temp_store_factory
    ->get('panels_ipe');
  $this->panelsStorage = $panels_storage;
}