3 namespace Drupal\Core\Http;
6 * Defines a single link relation type.
8 * An example of a link relation type is 'canonical'. It represents a canonical,
9 * definite representation of a resource.
11 * @see \Drupal\Core\Http\LinkRelationTypeManager
12 * @see https://tools.ietf.org/html/rfc5988#page-6
14 interface LinkRelationTypeInterface {
17 * Indicates whether this link relation type is of the 'registered' kind.
21 * @see https://tools.ietf.org/html/rfc5988#section-4.1
23 public function isRegistered();
26 * Indicates whether this link relation type is of the 'extension' kind.
30 * @see https://tools.ietf.org/html/rfc5988#section-4.2
32 public function isExtension();
35 * Returns the registered link relation type name.
37 * Only available for link relation types of the KIND_REGISTERED kind.
40 * The name of the registered relation type.
42 * @see https://tools.ietf.org/html/rfc5988#section-4.1
44 public function getRegisteredName();
47 * Returns the extension link relation type URI.
49 * Only available for link relation types of the KIND_EXTENSION kind.
52 * The URI of the extension relation type.
54 * @see https://tools.ietf.org/html/rfc5988#section-4.2
56 public function getExtensionUri();
59 * Returns the link relation type description.
62 * The link relation type description.
64 * @see https://tools.ietf.org/html/rfc5988#section-6.2.1
66 public function getDescription();
69 * Returns the URL pointing to the reference of the link relation type.
72 * The URL pointing to the reference.
74 * @see https://tools.ietf.org/html/rfc5988#section-6.2.1
76 public function getReference();
79 * Returns some extra notes/comments about this link relation type.
82 * The notes about the link relation.
84 * @see https://tools.ietf.org/html/rfc5988#section-6.2.1
86 public function getNotes();