public function PanelizerEntityViewBuilder::__construct in Panelizer 8.5
Same name and namespace in other branches
- 8.3 src/PanelizerEntityViewBuilder.php \Drupal\panelizer\PanelizerEntityViewBuilder::__construct()
- 8.4 src/PanelizerEntityViewBuilder.php \Drupal\panelizer\PanelizerEntityViewBuilder::__construct()
Constructs a new EntityViewBuilder.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager service.
\Drupal\panelizer\PanelizerInterface $panelizer: The Panelizer service.
\Drupal\panelizer\Plugin\PanelizerEntityManager $panelizer_manager: The Panelizer entity manager.
\Drupal\Panels\PanelsDisplayManagerInterface $panels_manager: The Panels display manager.
File
- src/
PanelizerEntityViewBuilder.php, line 98
Class
- PanelizerEntityViewBuilder
- Entity view builder for entities that can be panelized.
Namespace
Drupal\panelizerCode
public function __construct(EntityTypeInterface $entity_type, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, PanelizerInterface $panelizer, PanelizerEntityManagerInterface $panelizer_manager, PanelsDisplayManagerInterface $panels_manager) {
$this->entityTypeId = $entity_type
->id();
$this->entityType = $entity_type;
$this->entityTypeManager = $entity_type_manager;
$this->moduleHandler = $module_handler;
$this->panelizer = $panelizer;
$this->panelizerManager = $panelizer_manager;
$this->panelsManager = $panels_manager;
}