Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal.php \Drupal::entityTypeManager()
  2. 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.

... See full list

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');
}