function Shortcut::setTitle

Same name in other branches
  1. 9 core/modules/shortcut/src/Entity/Shortcut.php \Drupal\shortcut\Entity\Shortcut::setTitle()
  2. 10 core/modules/shortcut/src/Entity/Shortcut.php \Drupal\shortcut\Entity\Shortcut::setTitle()
  3. 11.x core/modules/shortcut/src/Entity/Shortcut.php \Drupal\shortcut\Entity\Shortcut::setTitle()

Overrides ShortcutInterface::setTitle

File

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

Class

Shortcut
Defines the shortcut entity class.

Namespace

Drupal\shortcut\Entity

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.