function Drupal::entityDefinitionUpdateManager

Same name in other branches
  1. 9 core/lib/Drupal.php \Drupal::entityDefinitionUpdateManager()
  2. 10 core/lib/Drupal.php \Drupal::entityDefinitionUpdateManager()
  3. 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.

60 calls to Drupal::entityDefinitionUpdateManager()
aggregator_update_8200 in core/modules/aggregator/aggregator.install
Make the 'Source feed' field for aggregator items required.
aggregator_update_8501 in core/modules/aggregator/aggregator.install
Add a default value for the 'Refresh' field for aggregator feed entities.
BlockContentReusableUpdateTest::testReusableFieldAddition in core/modules/block_content/tests/src/Functional/Update/BlockContentReusableUpdateTest.php
Tests adding 'reusable' entity base field to the block content entity type.
BlockContentUpdateTest::testSimpleUpdates in core/modules/block_content/tests/src/Functional/Update/BlockContentUpdateTest.php
Tests the revision metadata fields and revision data table additions.
BlockContentUpdateTest::testStatusFieldAddition in core/modules/block_content/tests/src/Functional/Update/BlockContentUpdateTest.php
Tests adding a status field to the block content entity type.

... See full list

File

core/lib/Drupal.php, line 765

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.