service entity_type.repository in Drupal 10
Same name and namespace in other branches
- 8 core/core.services.yml \entity_type.repository
- 9 core/core.services.yml \entity_type.repository
Class
Drupal\Core\Entity\EntityTypeRepository13 string references to entity_type.repository
- BundleClassTest::testAmbiguousBundleClassExceptionEntityTypeRepository in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ BundleClassTest.php - Checks exception is thrown if two entity types share the same bundle class.
- ContentEntityBase::create in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Constructs a new entity object, without permanently saving it.
- ContentLanguageSettingsUnitTest::testLoadByEntityTypeBundle in core/
modules/ language/ tests/ src/ Unit/ ContentLanguageSettingsUnitTest.php - @covers ::loadByEntityTypeBundle
- EntityBase::create in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - EntityBase::load in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php
File
- core/
core.services.yml - core/core.services.yml
View source
- class: Drupal\Core\Entity\EntityTypeRepository
- arguments:
- - '@entity_type.manager'