You are here

public function ConfigDiffer::__construct in Configuration Update Manager 8

Constructs a ConfigDiffer.

Parameters

\Drupal\Core\StringTranslation\TranslationInterface $translation: String translation service.

string[] $ignore: Config components to ignore at the top level.

string $hierarchy_prefix: Prefix to use in diffs for array hierarchy.

string $value_prefix: Prefix to use in diffs for array value.

File

src/ConfigDiffer.php, line 56

Class

ConfigDiffer
Provides methods related to config differences.

Namespace

Drupal\config_update

Code

public function __construct(TranslationInterface $translation, array $ignore = [
  'uuid',
  '_core',
], $hierarchy_prefix = '::', $value_prefix = ' : ') {
  $this->stringTranslation = $translation;
  $this->hierarchyPrefix = $hierarchy_prefix;
  $this->valuePrefix = $value_prefix;
  $this->ignore = $ignore;
}