You are here

public function FieldInstanceConfigurationHandler::getIdentifiers in Configuration Management 7.3

Returns the configuration identifiers handled by this instance.

Return value

array An array of identifiers.

Overrides ConfigurationHandler::getIdentifiers

File

src/Handlers/FieldInstanceConfigurationHandler.php, line 17

Class

FieldInstanceConfigurationHandler

Namespace

Configuration\Handlers

Code

public function getIdentifiers() {
  $identifiers = array();
  foreach ($this->configuration_manager
    ->drupal()
    ->field_info_fields() as $field_name => $field) {
    foreach ($field['bundles'] as $entity_type => $bundles) {
      foreach ($bundles as $bundle_name) {
        $identifier = "{$entity_type}.{$bundle_name}.{$field_name}";
        $identifiers[$identifier] = t('Field base: @field part of (@entity.@bundle)', array(
          '@field' => $field_name,
          '@entity' => $entity_type,
          '@bundle' => $bundle_name,
        ));
      }
    }
  }
  return $identifiers;
}