You are here

public function DateRecurEntityHooks::fieldStorageConfigDelete in Recurring Dates Field 8

Reacts to a deleted field storage config entity.

Parameters

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

Throws

\Exception Throws exceptions.

See also

\date_recur_field_storage_config_delete()

File

src/DateRecurEntityHooks.php, line 80

Class

DateRecurEntityHooks
Reacts to Drupal entity hooks.

Namespace

Drupal\date_recur

Code

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