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