You are here

public function LinkRelationType::getExtensionUri in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Http/LinkRelationType.php \Drupal\Core\Http\LinkRelationType::getExtensionUri()

Returns the extension link relation type URI.

Only available for link relation types of the KIND_EXTENSION kind.

Return value

string The URI of the extension relation type.

Overrides LinkRelationTypeInterface::getExtensionUri

See also

https://tools.ietf.org/html/rfc5988#section-4.2

File

core/lib/Drupal/Core/Http/LinkRelationType.php, line 36

Class

LinkRelationType
Defines a single link relationship type.

Namespace

Drupal\Core\Http

Code

public function getExtensionUri() {
  return $this
    ->isExtension() ? $this->pluginDefinition['uri'] : NULL;
}