protected function FieldConfiguration::field_load in Configuration Management 7.2
Load a field's configuration and instance configuration by an entity_type.bundle.field_name identifier.
1 call to FieldConfiguration::field_load()
- FieldConfiguration::prepareBuild in lib/
Drupal/ configuration/ Config/ FieldConfiguration.php - Implements Drupal\configuration\Config\Configuration::prepareBuild().
File
- lib/
Drupal/ configuration/ Config/ FieldConfiguration.php, line 55 - Definition of Drupal\configuration\Config\FieldConfiguration.
Class
Namespace
Drupal\configuration\ConfigCode
protected function field_load($identifier) {
list($entity_type, $field_name, $bundle) = explode('.', $identifier);
$field_info = field_info_field($field_name);
$instance_info = field_info_instance($entity_type, $field_name, $bundle);
if ($field_info && $instance_info) {
unset($field_info['id']);
unset($field_info['bundles']);
unset($instance_info['id']);
unset($instance_info['field_id']);
return array(
'field_config' => $field_info,
'field_instance' => $instance_info,
);
}
return FALSE;
}