You are here

public function LinkRelationType::getRegisteredName in Drupal 8

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

Returns the registered link relation type name.

Only available for link relation types of the KIND_REGISTERED kind.

Return value

string|null The name of the registered relation type.

Overrides LinkRelationTypeInterface::getRegisteredName

See also

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

File

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

Class

LinkRelationType
Defines a single link relationship type.

Namespace

Drupal\Core\Http

Code

public function getRegisteredName() {
  return $this
    ->isRegistered() ? $this
    ->getPluginId() : NULL;
}