Feed::getHash

public Feed::getHash()

Returns the calculated hash of the feed data, used for validating cache.

Return value

string The calculated hash of the feed data.

Overrides FeedInterface::getHash

File

core/modules/aggregator/src/Entity/Feed.php, line 283

Class

Feed
Defines the aggregator feed entity class.

Namespace

Drupal\aggregator\Entity

Code

public function getHash() {
  return $this->get('hash')->value;
}
doc_Drupal
2016-10-29 09:09:54
Comments
Leave a Comment

Please login to continue.