public function Feed::setHash in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/aggregator/src/Entity/Feed.php \Drupal\aggregator\Entity\Feed::setHash()
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
1 call to Feed::setHash()
- Feed::deleteItems in core/
modules/ aggregator/ src/ Entity/ Feed.php - Deletes all items from a feed.
File
- core/
modules/ aggregator/ src/ Entity/ Feed.php, line 384 - Contains \Drupal\aggregator\Entity\Feed.
Class
- Feed
- Defines the aggregator feed entity class.
Namespace
Drupal\aggregator\EntityCode
public function setHash($hash) {
$this
->set('hash', $hash);
return $this;
}