public EntityDefinitionUpdateManager::updateFieldStorageDefinition(FieldStorageDefinitionInterface $storage_definition)
Applies any change performed to the passed field storage definition.
Parameters
\Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field storage definition.
Overrides EntityDefinitionUpdateManagerInterface::updateFieldStorageDefinition
File
- core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php, line 183
Class
- EntityDefinitionUpdateManager
- Manages entity definition updates.
Namespace
Drupal\Core\Entity
Code
public function updateFieldStorageDefinition(FieldStorageDefinitionInterface $storage_definition) { $original = $this->getFieldStorageDefinition($storage_definition->getName(), $storage_definition->getTargetEntityTypeId()); $this->entityManager->clearCachedDefinitions(); $this->entityManager->onFieldStorageDefinitionUpdate($storage_definition, $original); }
Please login to continue.