protected function FeedsProcessor::getHash in Feeds 8.2
Retrieves the MD5 hash of $entity_id from the database.
Return value
string Empty string if no item is found, hash otherwise.
1 call to FeedsProcessor::getHash()
- FeedsProcessor::process in lib/
Drupal/ feeds/ Plugin/ FeedsProcessor.php - Process the result of the parsing stage.
File
- lib/
Drupal/ feeds/ Plugin/ FeedsProcessor.php, line 856 - Contains FeedsProcessor and related classes.
Class
- FeedsProcessor
- Abstract class, defines interface for processors.
Namespace
Drupal\feeds\PluginCode
protected function getHash($entity_id) {
if ($hash = db_query("SELECT hash FROM {feeds_item} WHERE entity_type = :type AND entity_id = :id", array(
':type' => $this
->entityType(),
':id' => $entity_id,
))
->fetchField()) {
// Return with the hash.
return $hash;
}
return '';
}