modules/custom/d_update/src/ConfigManager.php
public function compare($configName, $hash = NULL) {
    if (empty($hash)) {
      return TRUE;
    }
    else {
      return $this->generateHashFromDatabase($configName) == $hash;
    }
  }
public function compare($configName, $hash = NULL) {
    if (empty($hash)) {
      return TRUE;
    }
    else {
      return $this->generateHashFromDatabase($configName) == $hash;
    }
  }
Compares config name hash wit provided hash.

@param string $configName
Full name of the config, eg node.type.content_page.
@param string $hash
Optional argument with hash.

@return bool
Returns true if hashes are the same or hash was not provided, false on different hashes.