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