function EntityRevisionParamConverter::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/ParamConverter/EntityRevisionParamConverter.php \Drupal\Core\ParamConverter\EntityRevisionParamConverter::__construct()
- 10 core/lib/Drupal/Core/ParamConverter/EntityRevisionParamConverter.php \Drupal\Core\ParamConverter\EntityRevisionParamConverter::__construct()
- 9 core/lib/Drupal/Core/ParamConverter/EntityRevisionParamConverter.php \Drupal\Core\ParamConverter\EntityRevisionParamConverter::__construct()
- 8.9.x core/lib/Drupal/Core/ParamConverter/EntityRevisionParamConverter.php \Drupal\Core\ParamConverter\EntityRevisionParamConverter::__construct()
Creates a new EntityRevisionParamConverter instance.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Drupal\Core\Entity\EntityRepositoryInterface $entityRepository: The entity repository.
File
-
core/
lib/ Drupal/ Core/ ParamConverter/ EntityRevisionParamConverter.php, line 40
Class
- EntityRevisionParamConverter
- Parameter converter for upcasting entity revision IDs to full objects.
Namespace
Drupal\Core\ParamConverterCode
public function __construct(protected EntityTypeManagerInterface $entityTypeManager, protected EntityRepositoryInterface $entityRepository) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.