You are here

public function LinkProviderBase::getLinkRelationType in JSON:API Hypermedia 8

Gets the link relation type for the provided link.

Return value

string A link relation type name for the provided link.

Overrides LinkProviderInterface::getLinkRelationType

4 calls to LinkProviderBase::getLinkRelationType()
EntityPublishedInterfaceLinkProvider::getLink in examples/Plugin/jsonapi_hypermedia/LinkProvider/EntityPublishedInterfaceLinkProvider.php
Adds, alters or removes hyperlinks from a link collection.
LinkProviderBase::getLinkKey in src/Plugin/LinkProviderBase.php
Gets the link object key for the provided link.
MutableResourceTypeLinkProvider::getLink in examples/Plugin/jsonapi_hypermedia/LinkProvider/MutableResourceTypeLinkProvider.php
Adds, alters or removes hyperlinks from a link collection.
TestLinkProvider::getLink in tests/modules/jsonapi_hypermedia_test_link_providers/src/Plugin/jsonapi_hypermedia/LinkProvider/TestLinkProvider.php
Adds, alters or removes hyperlinks from a link collection.
1 method overrides LinkProviderBase::getLinkRelationType()
AuthenticationLinkProvider::getLinkRelationType in examples/Plugin/jsonapi_hypermedia/LinkProvider/AuthenticationLinkProvider.php
Gets the link relation type for the provided link.

File

src/Plugin/LinkProviderBase.php, line 24

Class

LinkProviderBase
Class LinkProviderBase.

Namespace

Drupal\jsonapi_hypermedia\Plugin

Code

public function getLinkRelationType() {
  $plugin_definition = $this
    ->getPluginDefinition();
  return $plugin_definition['link_relation_type'];
}