You are here

public function Status::setName in Heartbeat 8

Sets the Status name.

Parameters

string $name: The Status name.

Return value

\Drupal\statusmessage\StatusInterface The called Status entity.

Overrides StatusInterface::setName

File

modules/statusmessage/src/Entity/Status.php, line 91

Class

Status

Namespace

Drupal\statusmessage\Entity

Code

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