public function DateRecurEntityHooks::fieldStorageConfigInsert in Recurring Dates Field 8
Reacts to an inserted field storage config entity.
Parameters
\Drupal\field\FieldStorageConfigInterface $fieldStorageConfig: Field storage config.
Throws
\Exception Throws exceptions.
See also
\date_recur_field_storage_config_insert()
File
- src/
DateRecurEntityHooks.php, line 42
Class
- DateRecurEntityHooks
- Reacts to Drupal entity hooks.
Namespace
Drupal\date_recurCode
public function fieldStorageConfigInsert(FieldStorageConfigInterface $fieldStorageConfig) {
if ($fieldStorageConfig
->getType() != 'date_recur') {
return;
}
$this
->getInstanceFromDefinition($fieldStorageConfig)
->onFieldCreate($fieldStorageConfig);
}