You are here

protected function FeedsProcessor::hash in Feeds 8.2

Create MD5 hash of item and mappings array.

Include mappings as a change in mappings may have an affect on the item produced.

Return value

Always returns a hash, even with empty, NULL, FALSE: Empty arrays return 40cd750bba9870f18aada2478b24840a Empty/NULL/FALSE strings return d41d8cd98f00b204e9800998ecf8427e

1 call to FeedsProcessor::hash()
FeedsProcessor::process in lib/Drupal/feeds/Plugin/FeedsProcessor.php
Process the result of the parsing stage.

File

lib/Drupal/feeds/Plugin/FeedsProcessor.php, line 846
Contains FeedsProcessor and related classes.

Class

FeedsProcessor
Abstract class, defines interface for processors.

Namespace

Drupal\feeds\Plugin

Code

protected function hash($item) {
  return hash('md5', serialize($item) . serialize($this->config['mappings']));
}