Newer
Older
if ($config_record) {
// If the field config is not install, install it.
if (!FieldConfig::loadByName(
$config_record['entity_type'],
$config_record['bundle'],
$config_record['field_name'])
) {
FieldConfig::create($config_record)->save();
}
}