You are here

public function Feed::getLastCheckedTime in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/aggregator/src/Entity/Feed.php \Drupal\aggregator\Entity\Feed::getLastCheckedTime()

Returns the last time where the feed was checked for new items.

Return value

int The timestamp when new items were last checked for.

Overrides FeedInterface::getLastCheckedTime

File

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

Class

Feed
Defines the aggregator feed entity class.

Namespace

Drupal\aggregator\Entity

Code

public function getLastCheckedTime() {
  return $this
    ->get('checked')->value;
}