public function RelationLinkManager::getRelationUri

Implements \Drupal\rest\LinkManager\RelationLinkManagerInterface::getRelationUri().

Overrides RelationLinkManagerInterface::getRelationUri

1 call to RelationLinkManager::getRelationUri()
RelationLinkManager::writeCache in drupal/core/modules/rest/lib/Drupal/rest/LinkManager/RelationLinkManager.php
Writes the cache of relation links.

File

drupal/core/modules/rest/lib/Drupal/rest/LinkManager/RelationLinkManager.php, line 32
Contains \Drupal\rest\LinkManager\RelationLinkManager.

Class

RelationLinkManager

Namespace

Drupal\rest\LinkManager

Code

public function getRelationUri($entity_type, $bundle, $field_name) {

  // @todo Make the base path configurable.
  return url("rest/relation/{$entity_type}/{$bundle}/{$field_name}", array(
    'absolute' => TRUE,
  ));
}