function 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 92
Class
- Shortcut
- Defines the shortcut entity class.
Namespace
Drupal\shortcut\EntityCode
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.