public function Shortcut::setTitle in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/shortcut/src/Entity/Shortcut.php \Drupal\shortcut\Entity\Shortcut::setTitle()
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 67 - Contains \Drupal\shortcut\Entity\Shortcut.
Class
- Shortcut
- Defines the shortcut entity class.
Namespace
Drupal\shortcut\EntityCode
public function setTitle($link_title) {
$this
->set('title', $link_title);
return $this;
}