public function MessageQueueItem::setCreatedTime in Courier 8
Same name and namespace in other branches
- 2.x src/Entity/MessageQueueItem.php \Drupal\courier\Entity\MessageQueueItem::setCreatedTime()
Sets the message queue item creation timestamp.
Parameters
int $timestamp: The message queue item creation timestamp.
Return value
\Drupal\courier\MessageQueueItemInterface Returns this message queue item for chaining.
Overrides MessageQueueItemInterface::setCreatedTime
File
- src/
Entity/ MessageQueueItem.php, line 95
Class
- MessageQueueItem
- Defines a Message queue item entity.
Namespace
Drupal\courier\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}