function EntityDefinitionUpdateManager::getFieldStorageDefinition

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php \Drupal\Core\Entity\EntityDefinitionUpdateManager::getFieldStorageDefinition()
  2. 8.9.x core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php \Drupal\Core\Entity\EntityDefinitionUpdateManager::getFieldStorageDefinition()
  3. 10 core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php \Drupal\Core\Entity\EntityDefinitionUpdateManager::getFieldStorageDefinition()

Overrides EntityDefinitionUpdateManagerInterface::getFieldStorageDefinition

1 call to EntityDefinitionUpdateManager::getFieldStorageDefinition()
EntityDefinitionUpdateManager::updateFieldStorageDefinition in core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
Applies any change performed to the passed field storage definition.

File

core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php, line 222

Class

EntityDefinitionUpdateManager
Manages entity definition updates.

Namespace

Drupal\Core\Entity

Code

public function getFieldStorageDefinition($name, $entity_type_id) {
    $storage_definitions = $this->entityLastInstalledSchemaRepository
        ->getLastInstalledFieldStorageDefinitions($entity_type_id);
    return isset($storage_definitions[$name]) ? clone $storage_definitions[$name] : NULL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.