You are here

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

Heartbeat

Namespace

Drupal\heartbeat\Entity

Code

public function setCreatedTime($timestamp) {
  $this
    ->set('created', $timestamp);
  return $this;
}