You are here

public function Heartbeat::getNid in Heartbeat 8

Gets the Heartbeat's associated node nid.

Return value

int The nid of the Heartbeat's associated node.

Overrides HeartbeatInterface::getNid

File

src/Entity/Heartbeat.php, line 992

Class

Heartbeat

Namespace

Drupal\heartbeat\Entity

Code

public function getNid() {
  return $this
    ->get('nid');
}