Shortcut::getUrl

public 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 85

Class

Shortcut
Defines the shortcut entity class.

Namespace

Drupal\shortcut\Entity

Code

1
2
3
public function getUrl() {
  return $this->link->first()->getUrl();
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.