Same name and namespace in other branches
- 10 core/lib/Drupal.php \Drupal::entityDefinitionUpdateManager()
- 8.9.x core/lib/Drupal.php \Drupal::entityDefinitionUpdateManager()
Returns the entity definition update manager.
Return value
\Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface The entity definition update manager.
19 calls to Drupal::entityDefinitionUpdateManager()
- contact_storage_test_install in core/
modules/ contact/ tests/ modules/ contact_storage_test/ contact_storage_test.install - Implements hook_install().
- ContentModerationStateTest::testNonLangcodeEntityTypeModeration in core/
modules/ content_moderation/ tests/ src/ Kernel/ ContentModerationStateTest.php - Tests moderation of a non-translatable entity type with no langcode.
- EntityDefinitionTestTrait::applyEntityUpdates in core/
modules/ system/ tests/ src/ Functional/ Entity/ Traits/ EntityDefinitionTestTrait.php - Applies all the detected valid changes.
- EntityDefinitionUpdateTest::testBundleFieldUpdateWithEntityTypeSchemaUpdate in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityDefinitionUpdateTest.php - Tests updating a bundle field when the entity type schema has changed.
- EntityTestTest::createEntity in core/
modules/ jsonapi/ tests/ src/ Functional/ EntityTestTest.php - Creates the entity to be tested.
File
- core/
lib/ Drupal.php, line 731
Class
- Drupal
- Static Service Container wrapper.
Code
public static function entityDefinitionUpdateManager() {
return static::getContainer()
->get('entity.definition_update_manager');
}