You are here

public function ShareMessage::setTitle in Share Message 8

Sets the Share Message title used when sharing.

Parameters

string $title: The title of the Share Message to be set.

Return value

$this

Overrides ShareMessageInterface::setTitle

File

src/Entity/ShareMessage.php, line 189

Class

ShareMessage
Entity class for the Share Message entity.

Namespace

Drupal\sharemessage\Entity

Code

public function setTitle($title) {
  $this
    ->set('title', $title);
  return $this;
}