public function Feed::setLastModified in Drupal 9
Same name and namespace in other branches
- 8 core/modules/aggregator/src/Entity/Feed.php \Drupal\aggregator\Entity\Feed::setLastModified()
Sets the last modification of the feed.
Parameters
int $modified: The timestamp when the feed was modified.
Return value
$this The class instance that this method is called on.
Overrides FeedInterface::setLastModified
1 call to Feed::setLastModified()
- 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 394
Class
- Feed
- Defines the aggregator feed entity class.
Namespace
Drupal\aggregator\EntityCode
public function setLastModified($modified) {
$this
->set('modified', $modified);
return $this;
}