Same name and namespace in other branches
- 8.9.x core/lib/Drupal.php \Drupal::entityTypeManager()
- 9 core/lib/Drupal.php \Drupal::entityTypeManager()
Retrieves the entity type manager.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.
504 calls to Drupal::entityTypeManager()
- AccessRoleTest::testAccessRole in core/
modules/ user/ tests/ src/ Functional/ Views/ AccessRoleTest.php - Tests role access plugin.
- AccountProxy::loadUserEntity in core/
lib/ Drupal/ Core/ Session/ AccountProxy.php - Load a user entity.
- AjaxFileManagedMultipleTest::testMultipleFilesUpload in core/
modules/ file/ tests/ src/ FunctionalJavascript/ AjaxFileManagedMultipleTest.php - Tests if managed file form element works well with multiple files upload.
- AreaEntityTest::doTestRender in core/
modules/ views/ tests/ src/ Kernel/ Handler/ AreaEntityTest.php - Tests rendering the entity area handler.
- BlockContent::getInstances in core/
modules/ block_content/ src/ Entity/ BlockContent.php - Gets the configured instances of this content block.
File
- core/
lib/ Drupal.php, line 314
Class
- Drupal
- Static Service Container wrapper.
Code
public static function entityTypeManager() {
return static::getContainer()
->get('entity_type.manager');
}