You are here

public function SerialSQLStorage::dropStorage in Serial Field 8

Drops an assistant serial storage for a deleted field.

Parameters

\Drupal\Core\Field\FieldDefinitionInterface $fieldDefinition: Field definition.

\Drupal\Core\Entity\FieldableEntityInterface $entity: Entity.

Overrides SerialStorageInterface::dropStorage

File

src/SerialSQLStorage.php, line 174

Class

SerialSQLStorage
Serial storage service definition.

Namespace

Drupal\serial

Code

public function dropStorage(FieldDefinitionInterface $fieldDefinition, FieldableEntityInterface $entity) {
  $this
    ->dropStorageFromName($this
    ->createStorageNameFromField($fieldDefinition, $entity));
}