1 field.module field_config_create(Config $staging_config)

Implements hook_config_create().

Related topics

File

core/modules/field/field.module, line 562
Attach custom data fields to Backdrop entities.

Code

function field_config_create(Config $staging_config) {
  $config_name = $staging_config->getName();
  if (strpos($config_name, 'field.field.') === 0) {
    $field = $staging_config->get();
    field_create_field($field);
  }
}