You are here

public static function Drupal::entityTypeManager in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal.php \Drupal::entityTypeManager()

Retrieves the entity type manager.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.

77 calls to Drupal::entityTypeManager()
aggregator_entity_extra_field_info in core/modules/aggregator/aggregator.module
Implements hook_entity_extra_field_info().
AliasStorage::__construct in core/lib/Drupal/Core/Path/AliasStorage.php
Constructs a Path CRUD object.
BaseFieldOverride::postDelete in core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php
Acts on deleted entities before the delete hook is invoked.
BundleConfigImportValidate::__construct in core/lib/Drupal/Core/Entity/Event/BundleConfigImportValidate.php
Constructs the event subscriber.
CommentAdminViewUpdateTest::testCommentAdminPostUpdateHook in core/modules/comment/tests/src/Functional/Update/CommentAdminViewUpdateTest.php
Tests that comment admin view is enabled after update.

... See full list

File

core/lib/Drupal.php, line 290
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function entityTypeManager() {
  return static::getContainer()
    ->get('entity_type.manager');
}