You are here

protected function DateRecurOccurrences::fieldStorageDelete in Recurring Dates Field 3.x

Same name and namespace in other branches
  1. 8.2 src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::fieldStorageDelete()
  2. 3.0.x src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::fieldStorageDelete()
  3. 3.1.x src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::fieldStorageDelete()

Reacts to field deletion.

2 calls to DateRecurOccurrences::fieldStorageDelete()
DateRecurOccurrences::onEntityTypeDelete in src/DateRecurOccurrences.php
Reacts to the deletion of the entity type.
DateRecurOccurrences::onFieldStorageDefinitionDelete in src/DateRecurOccurrences.php
Reacts to the deletion of a field storage definition.

File

src/DateRecurOccurrences.php, line 266

Class

DateRecurOccurrences
Manages occurrences tables and the data that populates them.

Namespace

Drupal\date_recur

Code

protected function fieldStorageDelete(FieldStorageDefinitionInterface $fieldDefinition) : void {
  $tableName = static::getOccurrenceCacheStorageTableName($fieldDefinition);
  $this->database
    ->schema()
    ->dropTable($tableName);
}