protected function DefaultDateRecurOccurrenceHandler::dropOccurrenceTable in Recurring Dates Field 8
Drops an occurrence table.
Parameters
\Drupal\Core\Field\FieldStorageDefinitionInterface $fieldDefinition: The field definition.
1 call to DefaultDateRecurOccurrenceHandler::dropOccurrenceTable()
- DefaultDateRecurOccurrenceHandler::onFieldDelete in src/
Plugin/ DateRecurOccurrenceHandler/ DefaultDateRecurOccurrenceHandler.php - Reacts to field deletion.
File
- src/
Plugin/ DateRecurOccurrenceHandler/ DefaultDateRecurOccurrenceHandler.php, line 309
Class
- DefaultDateRecurOccurrenceHandler
- Provides the default occurrence handler.
Namespace
Drupal\date_recur\Plugin\DateRecurOccurrenceHandlerCode
protected function dropOccurrenceTable(FieldStorageDefinitionInterface $fieldDefinition) {
$tableName = $this
->getOccurrenceCacheStorageTableName($fieldDefinition);
$schema = $this->database
->schema();
$schema
->dropTable($tableName);
}