public function EntityConverter::__construct

Constructs a new EntityConverter.

Parameters

\Drupal\Core\Entity\EntityManager $entityManager: The entity manager.

File

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

Class

EntityConverter
This class allows the upcasting of entity ids to the respective entity object.

Namespace

Drupal\Core\ParamConverter

Code

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