public function validateChanges(Config $config, $config_type) {
    $original = $config->getOriginal();
    $updated = $config->get();
    $ignore_plugin = $this->getPluginForConfigType($config_type);

    if (!$ignore_plugin) {
      // Ignore rules not found for this config type.
      return FALSE;
    }

    if ($ignore_plugin->fullIgnore()) {
      // Ignore any changes for this config type.
      return TRUE;
    }

    // Get config changes.
    $diff = DiffArray::diffAssocRecursive($original, $updated);
    $diff_keys = $this->getModifiedKeys($diff);

    return $ignore_plugin->checkIgnoreDiffKeys($diff_keys);
  }
public function validateChanges(Config $config, $config_type) {
    $original = $config->getOriginal();
    $updated = $config->get();
    $ignore_plugin = $this->getPluginForConfigType($config_type);

    if (!$ignore_plugin) {
      // Ignore rules not found for this config type.
      return FALSE;
    }

    if ($ignore_plugin->fullIgnore()) {
      // Ignore any changes for this config type.
      return TRUE;
    }

    // Get config changes.
    $diff = DiffArray::diffAssocRecursive($original, $updated);
    $diff_keys = $this->getModifiedKeys($diff);

    return $ignore_plugin->checkIgnoreDiffKeys($diff_keys);
  }
public function validateChanges ( Config $ config , $ config_type ) { $ original = $ config -> getOriginal ( ) ; $ updated = $ config -> get ( ) ; $ ignore_plugin = $ this -> getPluginForConfigType ( $ config_type ) ; if ( ! $ ignore_plugin ) { // Ignore rules not found for this config type. return FALSE ; } if ( $ ignore_plugin -> fullIgnore ( ) ) { // Ignore any changes for this config type. return TRUE ; } // Get config changes. $ diff = DiffArray :: diffAssocRecursive ( $ original , $ updated ) ; $ diff_keys = $ this -> getModifiedKeys ( $ diff ) ; return $ ignore_plugin -> checkIgnoreDiffKeys ( $ diff_keys ) ; }
Check config ignore rules.

@param \Drupal\Core\Config\Config $config
Config object.
@param $config_type
Config type.

@return bool
TRUE - if changes can be ignored.
Check config ignore rules .