function EntityRepository::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/EntityRepository.php \Drupal\Core\Entity\EntityRepository::__construct()
- 10 core/lib/Drupal/Core/Entity/EntityRepository.php \Drupal\Core\Entity\EntityRepository::__construct()
- 9 core/lib/Drupal/Core/Entity/EntityRepository.php \Drupal\Core\Entity\EntityRepository::__construct()
- 8.9.x core/lib/Drupal/Core/Entity/EntityRepository.php \Drupal\Core\Entity\EntityRepository::__construct()
Constructs a new EntityRepository.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.
\Drupal\Core\Plugin\Context\ContextRepositoryInterface $contextRepository: The context repository service.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityRepository.php, line 26
Class
- EntityRepository
- Provides several mechanisms for retrieving entities.
Namespace
Drupal\Core\EntityCode
public function __construct(protected EntityTypeManagerInterface $entityTypeManager, protected LanguageManagerInterface $languageManager, protected ContextRepositoryInterface $contextRepository) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.