You are here

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

Same name and namespace in other branches
  1. 8.2 src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::onFieldStorageDefinitionCreate()
  2. 3.x src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::onFieldStorageDefinitionCreate()
  3. 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_recur

Code

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