You are here

public function DateRecurEntityHooks::fieldStorageConfigUpdate in Recurring Dates Field 8

Reacts to an updated field storage config entity.

Parameters

\Drupal\field\FieldStorageConfigInterface $fieldStorageConfig: Field storage config.

Throws

\Exception Throws exceptions.

See also

\date_recur_field_storage_config_update()

File

src/DateRecurEntityHooks.php, line 61

Class

DateRecurEntityHooks
Reacts to Drupal entity hooks.

Namespace

Drupal\date_recur

Code

public function fieldStorageConfigUpdate(FieldStorageConfigInterface $fieldStorageConfig) {
  if ($fieldStorageConfig
    ->getType() != 'date_recur') {
    return;
  }
  $this
    ->getInstanceFromDefinition($fieldStorageConfig)
    ->onFieldUpdate($fieldStorageConfig);
}