LinkRelationType.php in Drupal 10
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 $this->pluginDefinition['description'] ?? '';
}
public function getReference() {
return $this->pluginDefinition['reference'] ?? '';
}
public function getNotes() {
return $this->pluginDefinition['notes'] ?? '';
}
}