You are here

public function DateRecurOccurrences::onFieldStorageDefinitionDelete in Recurring Dates Field 3.0.x

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

Reacts to the deletion of a field storage definition.

Parameters

\Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field being deleted.

Overrides FieldStorageDefinitionEventSubscriberTrait::onFieldStorageDefinitionDelete

File

src/DateRecurOccurrences.php, line 222

Class

DateRecurOccurrences
Manages occurrences tables and the data that populates them.

Namespace

Drupal\date_recur

Code

public function onFieldStorageDefinitionDelete(FieldStorageDefinitionInterface $fieldStorageConfig) : void {
  if ($this
    ->isDateRecur($fieldStorageConfig)) {
    $this
      ->fieldStorageDelete($fieldStorageConfig);
  }
}