function Drupal::entityDefinitionUpdateManager
Same name in other branches
- 8.9.x core/lib/Drupal.php \Drupal::entityDefinitionUpdateManager()
- 10 core/lib/Drupal.php \Drupal::entityDefinitionUpdateManager()
- 11.x core/lib/Drupal.php \Drupal::entityDefinitionUpdateManager()
Returns the entity definition update manager.
Return value
\Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface The entity definition update manager.
13 calls to Drupal::entityDefinitionUpdateManager()
- contact_storage_test_install in core/
modules/ contact/ tests/ modules/ contact_storage_test/ contact_storage_test.install - Implements hook_install().
- EntityDefinitionUpdateTest::testBundleFieldUpdateWithEntityTypeSchemaUpdate in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityDefinitionUpdateTest.php - Tests updating a bundle field when the entity type schema has changed.
- entity_test_update_8001 in core/
modules/ system/ tests/ modules/ entity_test/ update/ entity_definition_updates_8001.inc - Makes the 'user_id' field multiple and migrate its data.
- entity_test_update_8002 in core/
modules/ system/ tests/ modules/ entity_test/ update/ entity_definition_updates_8002.inc - Makes the 'user_id' field single and migrate its data.
- field_test_entity_info_translatable in core/
modules/ field/ tests/ modules/ field_test/ field_test.entity.inc - Helper function to enable entity translations.
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');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.