public function Status::setCreatedTime in Heartbeat 8
Sets the Status creation timestamp.
Parameters
int $timestamp: The Status creation timestamp.
Return value
\Drupal\statusmessage\StatusInterface The called Status entity.
Overrides StatusInterface::setCreatedTime
File
- modules/
statusmessage/ src/ Entity/ Status.php, line 106
Class
Namespace
Drupal\statusmessage\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}