3 namespace Drupal\Core\Http;
5 use Drupal\Core\Plugin\PluginBase;
8 * Defines a single link relationship type.
10 class LinkRelationType extends PluginBase implements LinkRelationTypeInterface {
15 public function isRegistered() {
16 return !$this->isExtension();
22 public function isExtension() {
23 return isset($this->pluginDefinition['uri']);
29 public function getRegisteredName() {
30 return $this->isRegistered() ? $this->getPluginId() : NULL;
36 public function getExtensionUri() {
37 return $this->isExtension() ? $this->pluginDefinition['uri'] : NULL;
43 public function getDescription() {
44 return isset($this->pluginDefinition['description']) ? $this->pluginDefinition['description'] : '';
50 public function getReference() {
51 return isset($this->pluginDefinition['reference']) ? $this->pluginDefinition['reference'] : '';
57 public function getNotes() {
58 return isset($this->pluginDefinition['notes']) ? $this->pluginDefinition['notes'] : '';