public function DateRecurOccurrences::onFieldStorageDefinitionDelete in Recurring Dates Field 3.1.x
Same name and namespace in other branches
- 8.2 src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::onFieldStorageDefinitionDelete()
- 3.x src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::onFieldStorageDefinitionDelete()
- 3.0.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_recurCode
public function onFieldStorageDefinitionDelete(FieldStorageDefinitionInterface $fieldStorageConfig) : void {
if ($this
->isDateRecur($fieldStorageConfig)) {
$this
->fieldStorageDelete($fieldStorageConfig);
}
}