public static function Drupal::entityTypeManager in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal.php \Drupal::entityTypeManager()
Retrieves the entity type manager.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.
52 calls to Drupal::entityTypeManager()
- aggregator_entity_extra_field_info in core/
modules/ aggregator/ aggregator.module - Implements hook_entity_extra_field_info().
- BaseFieldOverride::postDelete in core/
lib/ Drupal/ Core/ Field/ Entity/ BaseFieldOverride.php - Acts on deleted entities before the delete hook is invoked.
- CommentTestTrait::addDefaultCommentField in core/
modules/ comment/ src/ Tests/ CommentTestTrait.php - Adds the default comment field to an entity.
- CommentTranslationUITest::doTestPublishedStatus in core/
modules/ comment/ tests/ src/ Functional/ CommentTranslationUITest.php - Tests the translation publishing status.
- ConfigImportAllTest::testInstallUninstall in core/
modules/ config/ tests/ src/ Functional/ ConfigImportAllTest.php - Tests that a fixed set of modules can be installed and uninstalled.
File
- core/
lib/ Drupal.php, line 313
Class
- Drupal
- Static Service Container wrapper.
Code
public static function entityTypeManager() {
return static::getContainer()
->get('entity_type.manager');
}