You are here

public function Panelizer::__construct in Panelizer 8.4

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

Constructs a Panelizer.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info manager.

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

\Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager: The field type manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Session\AccountProxyInterface $current_user: The current user service.

\Drupal\panelizer\Plugin\PanelizerEntityManager $panelizer_entity_manager: The Panelizer entity manager.

\Drupal\panels\PanelsDisplayManagerInterface $panels_manager: The Panels display manager.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

\Drupal\ctools\ContextMapperInterface $context_mapper: The context mapper service.

File

src/Panelizer.php, line 120

Class

Panelizer
The Panelizer service.

Namespace

Drupal\panelizer

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityFieldManagerInterface $entity_field_manager, FieldTypePluginManagerInterface $field_type_manager, ModuleHandlerInterface $module_handler, AccountProxyInterface $current_user, PanelizerEntityManager $panelizer_entity_manager, PanelsDisplayManagerInterface $panels_manager, TranslationInterface $string_translation, ContextMapperInterface $context_mapper) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->entityFieldManager = $entity_field_manager;
  $this->fieldTypeManager = $field_type_manager;
  $this->moduleHandler = $module_handler;
  $this->currentUser = $current_user;
  $this->panelizerEntityManager = $panelizer_entity_manager;
  $this->panelsManager = $panels_manager;
  $this->stringTranslation = $string_translation;
  $this->contextMapper = $context_mapper;
}