Same name and namespace in other branches
- 10 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.
324 calls to Drupal::entityTypeManager()
- AccessRoleTest::testAccessRole in core/
modules/ user/ tests/ src/ Functional/ Views/ AccessRoleTest.php - Tests role access plugin.
- aggregator_entity_extra_field_info in core/
modules/ aggregator/ aggregator.module - Implements hook_entity_extra_field_info().
- AjaxFileManagedMultipleTest::testMultipleFilesUpload in core/
modules/ file/ tests/ src/ FunctionalJavascript/ AjaxFileManagedMultipleTest.php - Test if managed file form element works well with multiple files upload.
- 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.
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');
}