You are here

public function ListFieldBuilder::defaultConfiguration in Diff 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides FieldDiffBuilderBase::defaultConfiguration

File

src/Plugin/diff/Field/ListFieldBuilder.php, line 87

Class

ListFieldBuilder
Plugin to diff list fields.

Namespace

Drupal\diff\Plugin\diff\Field

Code

public function defaultConfiguration() {
  $default_configuration = array(
    'compare' => 'key',
  );
  $default_configuration += parent::defaultConfiguration();
  return $default_configuration;
}