Feed::setHash

public Feed::setHash($hash)

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

Parameters

string $hash: A string containing the calculated hash of the feed. Must contain US ASCII characters only.

Return value

\Drupal\aggregator\FeedInterface The class instance that this method is called on.

Overrides FeedInterface::setHash

File

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

Class

Feed
Defines the aggregator feed entity class.

Namespace

Drupal\aggregator\Entity

Code

public function setHash($hash) {
  $this->set('hash', $hash);
  return $this;
}
doc_Drupal
2016-10-29 09:09:57
Comments
Leave a Comment

Please login to continue.