You are here

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

Status

Namespace

Drupal\statusmessage\Entity

Code

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