You are here

public function EntityConverter::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/ParamConverter/EntityConverter.php \Drupal\Core\ParamConverter\EntityConverter::__construct()

Constructs a new EntityConverter.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

2 calls to EntityConverter::__construct()
AdminPathConfigEntityConverter::__construct in core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php
Constructs a new EntityConverter.
ViewUIConverter::__construct in core/modules/views_ui/src/ParamConverter/ViewUIConverter.php
Constructs a new ViewUIConverter.
2 methods override EntityConverter::__construct()
AdminPathConfigEntityConverter::__construct in core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php
Constructs a new EntityConverter.
ViewUIConverter::__construct in core/modules/views_ui/src/ParamConverter/ViewUIConverter.php
Constructs a new ViewUIConverter.

File

core/lib/Drupal/Core/ParamConverter/EntityConverter.php, line 59
Contains \Drupal\Core\ParamConverter\EntityConverter.

Class

EntityConverter
Parameter converter for upcasting entity IDs to full objects.

Namespace

Drupal\Core\ParamConverter

Code

public function __construct(EntityManagerInterface $entity_manager) {
  $this->entityManager = $entity_manager;
}