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
Namespace
Drupal\heartbeat\EntityCode
public function setName($name) {
$this
->set('name', $name);
return $this;
}