You are here

public function PanelizerEntityBase::__construct in Panelizer 8.4

Same name and namespace in other branches
  1. 8.5 src/Plugin/PanelizerEntityBase.php \Drupal\panelizer\Plugin\PanelizerEntityBase::__construct()
  2. 8.3 src/Plugin/PanelizerEntityBase.php \Drupal\panelizer\Plugin\PanelizerEntityBase::__construct()

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 implementation definition.

\Drupal\Panels\PanelsDisplayManager $panels_manager: The Panels display manager.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

Overrides PluginBase::__construct

File

src/Plugin/PanelizerEntityBase.php, line 43

Class

PanelizerEntityBase
Base class for Panelizer entity plugins.

Namespace

Drupal\panelizer\Plugin

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, PanelsDisplayManager $panels_manager, EntityFieldManagerInterface $entity_field_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->panelsManager = $panels_manager;
  $this->entityFieldManager = $entity_field_manager;
}