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