public function Shortcut::getUrl in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/shortcut/src/Entity/Shortcut.php \Drupal\shortcut\Entity\Shortcut::getUrl()
Returns the URL object pointing to the configured route.
Return value
\Drupal\Core\Url The URL object.
Overrides ShortcutInterface::getUrl
File
- core/
modules/ shortcut/ src/ Entity/ Shortcut.php, line 90 - Contains \Drupal\shortcut\Entity\Shortcut.
Class
- Shortcut
- Defines the shortcut entity class.
Namespace
Drupal\shortcut\EntityCode
public function getUrl() {
return $this->link
->first()
->getUrl();
}