public function InPlaceEditorDisplayBuilder::__construct in Panels 8.3
Same name and namespace in other branches
- 8.4 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\user\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 59
Class
- InPlaceEditorDisplayBuilder
- The In-place editor display builder for viewing and editing a PanelsDisplayVariant in the same place.
Namespace
Drupal\panels_ipe\Plugin\DisplayBuilderCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ContextHandlerInterface $context_handler, AccountInterface $account, SharedTempStoreFactory $temp_store_factory, PanelsStorageManagerInterface $panels_storage) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $context_handler, $account);
$this->tempStore = $temp_store_factory
->get('panels_ipe');
$this->panelsStorage = $panels_storage;
}