You are here

public function FeedImportSQLHashes::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 FeedImportHashManager::hash

1 method overrides FeedImportSQLHashes::hash()
FeedImportSQLHashesv2Compatible::hash in feed_import_base/src/FeedImportSQLHashesv2Compatible.php
Creates a hash, based on uniq Also adds it on generated hashes

File

feed_import_base/src/FeedImportSQLHashes.php, line 87

Class

FeedImportSQLHashes
This class implements SQL hash storage

Namespace

Drupal\feed_import_base

Code

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