class LinkRelationType
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Http/LinkRelationType.php \Drupal\Core\Http\LinkRelationType
- 8.9.x core/lib/Drupal/Core/Http/LinkRelationType.php \Drupal\Core\Http\LinkRelationType
- 11.x core/lib/Drupal/Core/Http/LinkRelationType.php \Drupal\Core\Http\LinkRelationType
Defines a single link relationship type.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
- class \Drupal\Core\Http\LinkRelationType extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\Http\LinkRelationTypeInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
Expanded class hierarchy of LinkRelationType
1 file declares its use of LinkRelationType
- LinkRelationsTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Http/ LinkRelationsTest.php
File
-
core/
lib/ Drupal/ Core/ Http/ LinkRelationType.php, line 10
Namespace
Drupal\Core\HttpView source
class LinkRelationType extends PluginBase implements LinkRelationTypeInterface {
/**
* {@inheritdoc}
*/
public function isRegistered() {
return !$this->isExtension();
}
/**
* {@inheritdoc}
*/
public function isExtension() {
return isset($this->pluginDefinition['uri']);
}
/**
* {@inheritdoc}
*/
public function getRegisteredName() {
return $this->isRegistered() ? $this->getPluginId() : NULL;
}
/**
* {@inheritdoc}
*/
public function getExtensionUri() {
return $this->isExtension() ? $this->pluginDefinition['uri'] : NULL;
}
/**
* {@inheritdoc}
*/
public function getDescription() {
return $this->pluginDefinition['description'] ?? '';
}
/**
* {@inheritdoc}
*/
public function getReference() {
return $this->pluginDefinition['reference'] ?? '';
}
/**
* {@inheritdoc}
*/
public function getNotes() {
return $this->pluginDefinition['notes'] ?? '';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
LinkRelationType::getDescription | public | function | Overrides LinkRelationTypeInterface::getDescription | |
LinkRelationType::getExtensionUri | public | function | Overrides LinkRelationTypeInterface::getExtensionUri | |
LinkRelationType::getNotes | public | function | Overrides LinkRelationTypeInterface::getNotes | |
LinkRelationType::getReference | public | function | Overrides LinkRelationTypeInterface::getReference | |
LinkRelationType::getRegisteredName | public | function | Overrides LinkRelationTypeInterface::getRegisteredName | |
LinkRelationType::isExtension | public | function | Overrides LinkRelationTypeInterface::isExtension | |
LinkRelationType::isRegistered | public | function | Overrides LinkRelationTypeInterface::isRegistered |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.