You are here

public function FeedImportSQLHashesv2Compatible::hash in Feed Import 8

Creates a hash, based on uniq Also adds it on generated hashes

Parameters

mixed $uniq: Unique identifier.

Return value

string A hash for specified identifier.

Overrides FeedImportSQLHashes::hash

File

feed_import_base/src/FeedImportSQLHashesv2Compatible.php, line 14

Class

FeedImportSQLHashesv2Compatible
This class implements SQL hash storage compatible with version 2.x

Namespace

Drupal\feed_import_base

Code

public function hash(&$uniq) {
  return $this->generatedHashes[] = md5($uniq . $this->hashPart);
}