function SqlContentEntityStorage::onFieldStorageDefinitionUpdate

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::onFieldStorageDefinitionUpdate()
  2. 10 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::onFieldStorageDefinitionUpdate()
  3. 11.x core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::onFieldStorageDefinitionUpdate()

Overrides ContentEntityStorageBase::onFieldStorageDefinitionUpdate

File

core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 1564

Class

SqlContentEntityStorage
A content entity database storage implementation.

Namespace

Drupal\Core\Entity\Sql

Code

public function onFieldStorageDefinitionUpdate(FieldStorageDefinitionInterface $storage_definition, FieldStorageDefinitionInterface $original) {
    $this->wrapSchemaException(function () use ($storage_definition, $original) {
        $this->getStorageSchema()
            ->onFieldStorageDefinitionUpdate($storage_definition, $original);
        $this->fieldStorageDefinitions[$storage_definition->getName()] = $storage_definition;
        $this->tableMapping = NULL;
    });
}

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