You are here

public function MessageQueueItem::getCreatedTime in Courier 8

Same name and namespace in other branches
  1. 2.x src/Entity/MessageQueueItem.php \Drupal\courier\Entity\MessageQueueItem::getCreatedTime()

Returns the message queue item creation timestamp.

Return value

int Creation timestamp of the message queue item.

Overrides MessageQueueItemInterface::getCreatedTime

File

src/Entity/MessageQueueItem.php, line 88

Class

MessageQueueItem
Defines a Message queue item entity.

Namespace

Drupal\courier\Entity

Code

public function getCreatedTime() {
  return $this
    ->get('created')->value;
}