You are here

public function Feed::getHash in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/aggregator/src/Entity/Feed.php \Drupal\aggregator\Entity\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 293

Class

Feed
Defines the aggregator feed entity class.

Namespace

Drupal\aggregator\Entity

Code

public function getHash() {
  return $this
    ->get('hash')->value;
}