You are here

protected function FieldConfiguration::isModified in Configuration Management 7.2

Return TRUE if the configuration is modified in the active store.

Overrides ConfigurationHandlerBaseTestCase::isModified

File

tests/handlers/TestFieldConfiguration.test, line 72
Tests for Configuration Management: Fields.

Class

FieldConfiguration
@file Tests for Configuration Management: Fields.

Code

protected function isModified($config) {
  $modified = FALSE;
  list($component, $entity_type, $field_name, $bundle) = explode('.', $config);
  field_info_cache_clear();
  $field = field_info_instance($entity_type, $field_name, $bundle);
  $this
    ->verbose(print_r($field, TRUE));
  $modified = $field['label'] == 'Modified';
  return $modified;
}