You are here

public function Feed::getLastCheckedTime in Drupal 8

Same name and namespace in other branches
  1. 9 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 257

Class

Feed
Defines the aggregator feed entity class.

Namespace

Drupal\aggregator\Entity

Code

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