Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LinkItemInterface.php

function LinkItemInterface::getUrl

Gets the URL object.

Return value

\Drupal\Core\Url Returns a Url object.

Throws

\InvalidArgumentException Thrown when there is a problem with field data.

1 method overrides LinkItemInterface::getUrl()
LinkItem::getUrl in core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
Gets the URL object.

File

core/modules/link/src/LinkItemInterface.php, line 44

Class

LinkItemInterface
Defines an interface for the link field item.

Namespace

Drupal\link

Code

public function getUrl();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal