public function EntityRevisionConverter::__construct in Workspace 8
Constructs a new EntityRevisionConverter.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.
File
- src/
ParamConverter/ EntityRevisionConverter.php, line 40
Class
- EntityRevisionConverter
- Parameter converter for upcasting entity revision IDs to full objects.
Namespace
Drupal\workspace\ParamConverterCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityRepositoryInterface $entity_repository) {
$this->entityTypeManager = $entity_type_manager;
$this->entityRepository = $entity_repository;
}