You are here

public function HeartbeatStream::setName in Heartbeat 8

Sets the Heartbeat stream name.

Parameters

string $name: The Heartbeat stream name.

Return value

\Drupal\heartbeat\Entity\HeartbeatStreamInterface The called Heartbeat stream entity.

Overrides HeartbeatStreamInterface::setName

File

src/Entity/HeartbeatStream.php, line 237

Class

HeartbeatStream
Defines the Heartbeat stream entity.

Namespace

Drupal\heartbeat\Entity

Code

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