EntityRevisionParamConverter::__construct

public EntityRevisionParamConverter::__construct(EntityTypeManagerInterface $entity_type_manager, EntityRepositoryInterface $entity_repository)

Creates a new EntityRevisionParamConverter instance.

Parameters

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

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

File

core/lib/Drupal/Core/ParamConverter/EntityRevisionParamConverter.php, line 50

Class

EntityRevisionParamConverter
Parameter converter for upcasting entity revision IDs to full objects.

Namespace

Drupal\Core\ParamConverter

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityRepositoryInterface $entity_repository) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityRepository = $entity_repository;
}
doc_Drupal
2016-10-29 09:07:30
Comments
Leave a Comment

Please login to continue.