You are here

public function DefaultDateRecurOccurrenceHandler::onFieldCreate in Recurring Dates Field 8

Reacts to field creation.

Parameters

\Drupal\Core\Field\FieldStorageDefinitionInterface $fieldDefinition: The field definition.

Overrides DateRecurOccurrenceHandlerInterface::onFieldCreate

File

src/Plugin/DateRecurOccurrenceHandler/DefaultDateRecurOccurrenceHandler.php, line 268

Class

DefaultDateRecurOccurrenceHandler
Provides the default occurrence handler.

Namespace

Drupal\date_recur\Plugin\DateRecurOccurrenceHandler

Code

public function onFieldCreate(FieldStorageDefinitionInterface $fieldDefinition) {
  $this
    ->createOccurrenceTable($fieldDefinition);
}