You are here

public function Heartbeat::getCreatedTime in Heartbeat 8

Gets the Heartbeat creation timestamp.

Return value

int Creation timestamp of the Heartbeat.

Overrides HeartbeatInterface::getCreatedTime

File

src/Entity/Heartbeat.php, line 186

Class

Heartbeat

Namespace

Drupal\heartbeat\Entity

Code

public function getCreatedTime() {
  return $this
    ->get('created')->value;
}