Item::getPostedTime

public Item::getPostedTime()

Returns the posted date of the feed item, as a Unix timestamp.

Return value

int The posted date of the feed item, as a Unix timestamp.

Overrides ItemInterface::getPostedTime

File

core/modules/aggregator/src/Entity/Item.php, line 188

Class

Item
Defines the aggregator item entity class.

Namespace

Drupal\aggregator\Entity

Code

public function getPostedTime() {
  return $this->get('timestamp')->value;
}
doc_Drupal
2016-10-29 09:21:15
Comments
Leave a Comment

Please login to continue.