LinkRelationType.php in Drupal 8
File
core/lib/Drupal/Core/Http/LinkRelationType.php
View source
<?php
namespace Drupal\Core\Http;
use Drupal\Core\Plugin\PluginBase;
class LinkRelationType extends PluginBase implements LinkRelationTypeInterface {
public function isRegistered() {
return !$this
->isExtension();
}
public function isExtension() {
return isset($this->pluginDefinition['uri']);
}
public function getRegisteredName() {
return $this
->isRegistered() ? $this
->getPluginId() : NULL;
}
public function getExtensionUri() {
return $this
->isExtension() ? $this->pluginDefinition['uri'] : NULL;
}
public function getDescription() {
return isset($this->pluginDefinition['description']) ? $this->pluginDefinition['description'] : '';
}
public function getReference() {
return isset($this->pluginDefinition['reference']) ? $this->pluginDefinition['reference'] : '';
}
public function getNotes() {
return isset($this->pluginDefinition['notes']) ? $this->pluginDefinition['notes'] : '';
}
}