Shortcut::setTitle

public Shortcut::setTitle($link_title)

Sets the title of this shortcut.

Parameters

string $title: The title of this shortcut.

Return value

\Drupal\shortcut\ShortcutInterface The called shortcut entity.

Overrides ShortcutInterface::setTitle

File

core/modules/shortcut/src/Entity/Shortcut.php, line 62

Class

Shortcut
Defines the shortcut entity class.

Namespace

Drupal\shortcut\Entity

Code

public function setTitle($link_title) {
  $this->set('title', $link_title);
  return $this;
}
doc_Drupal
2016-10-29 09:42:26
Comments
Leave a Comment

Please login to continue.