You are here

public function ShareMessage::setLabel in Share Message 8

Sets the internal Share Message label.

Parameters

string $label: A human-readable label representing the internal Share Message label.

Return value

$this

Overrides ShareMessageInterface::setLabel

File

src/Entity/ShareMessage.php, line 181

Class

ShareMessage
Entity class for the Share Message entity.

Namespace

Drupal\sharemessage\Entity

Code

public function setLabel($label) {
  $this
    ->set('label', $label);
  return $this;
}