You are here

public function ReversibleConfigDiffer::stripIgnore in Update helper 2.x

Same name and namespace in other branches
  1. 8 src/ReversibleConfigDiffer.php \Drupal\update_helper\ReversibleConfigDiffer::stripIgnore()

Strip some generic fields (uuid, _core).

Parameters

mixed $data: Configuration array.

Return value

mixed Returns stripped configuration.

2 calls to ReversibleConfigDiffer::stripIgnore()
ReversibleConfigDiffer::diff in src/ReversibleConfigDiffer.php
ReversibleConfigDiffer::same in src/ReversibleConfigDiffer.php

File

src/ReversibleConfigDiffer.php, line 59

Class

ReversibleConfigDiffer
Overwrite of config updater differ.

Namespace

Drupal\update_helper

Code

public function stripIgnore($data) {
  foreach ($this->ignore as $element) {
    unset($data[$element]);
  }
  return $data;
}