Same name and namespace in other branches
- 8.9.x core/core.services.yml \entity_type.repository
- 9 core/core.services.yml \entity_type.repository
Class
Drupal\Core\Entity\EntityTypeRepository7 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.
- BundleClassTest::testNoAmbiguousBundleClassExceptionSharingEntityClass in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ BundleClassTest.php - Checks that no exception is thrown when two bundles share an entity class.
- ContentLanguageSettingsUnitTest::testLoadByEntityTypeBundle in core/
modules/ language/ tests/ src/ Unit/ ContentLanguageSettingsUnitTest.php - @covers ::loadByEntityTypeBundle
- EntityBase::create in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - Constructs a new entity object, without permanently saving it.
- EntityBase::load in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - Loads an entity.
File
- core/
core.services.yml - core/core.services.yml
View source
- class: Drupal\Core\Entity\EntityTypeRepository
- arguments:
- - '@entity_type.manager'
- - '@entity_type.bundle.info'