public function DateRecurOccurrences::onFieldStorageDefinitionCreate in Recurring Dates Field 3.0.x
Same name and namespace in other branches
- 8.2 src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::onFieldStorageDefinitionCreate()
- 3.x src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::onFieldStorageDefinitionCreate()
- 3.1.x src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::onFieldStorageDefinitionCreate()
Reacts to the creation of a field storage definition.
Parameters
\Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The definition being created.
Overrides FieldStorageDefinitionEventSubscriberTrait::onFieldStorageDefinitionCreate
File
- src/
DateRecurOccurrences.php, line 213
Class
- DateRecurOccurrences
- Manages occurrences tables and the data that populates them.
Namespace
Drupal\date_recurCode
public function onFieldStorageDefinitionCreate(FieldStorageDefinitionInterface $fieldStorageConfig) : void {
if ($this
->isDateRecur($fieldStorageConfig)) {
$this
->fieldStorageCreate($fieldStorageConfig);
}
}