EntityConverter::__construct

public EntityConverter::__construct(EntityManagerInterface $entity_manager)

Constructs a new EntityConverter.

Parameters

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

File

core/lib/Drupal/Core/ParamConverter/EntityConverter.php, line 54

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;
}
doc_Drupal
2016-10-29 09:04:53
Comments
Leave a Comment

Please login to continue.