function Drupal::entityTypeManager
Same name in other branches
- 9 core/lib/Drupal.php \Drupal::entityTypeManager()
- 10 core/lib/Drupal.php \Drupal::entityTypeManager()
- 11.x 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.
File
-
core/
lib/ Drupal.php, line 290
Class
- Drupal
- Static Service Container wrapper.
Code
public static function entityTypeManager() {
return static::getContainer()->get('entity_type.manager');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.