You are here

public function Heartbeat::setName in Heartbeat 8

Sets the Heartbeat name.

Parameters

string $name: The Heartbeat name.

Return value

\Drupal\heartbeat\Entity\HeartbeatInterface The called Heartbeat entity.

Overrides HeartbeatInterface::setName

File

src/Entity/Heartbeat.php, line 157

Class

Heartbeat

Namespace

Drupal\heartbeat\Entity

Code

public function setName($name) {
  $this
    ->set('name', $name);
  return $this;
}