You are here

public function ConfigDiffer::same in Configuration Update Manager 8

Decides if two configuration arrays are considered to be the same.

The two arrays are considered to be the same if, after "normalizing", they have the same keys and values. It is up to the particular implementing class to decide what normalizing means.

Parameters

array|null $source: Source config.

array|null $target: Target config.

Return value

bool TRUE if the source and target are the same, and FALSE if they are different.

Overrides ConfigDiffInterface::same

File

src/ConfigDiffer.php, line 123

Class

ConfigDiffer
Provides methods related to config differences.

Namespace

Drupal\config_update

Code

public function same($source, $target) {
  $source = $this
    ->normalize($source);
  $target = $this
    ->normalize($target);
  return $source === $target;
}