function Shortcut::getUrl

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

Overrides ShortcutInterface::getUrl

File

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

Class

Shortcut
Defines the shortcut entity class.

Namespace

Drupal\shortcut\Entity

Code

public function getUrl() {
    return $this->link
        ->first()
        ->getUrl();
}

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