RelationLinkManager::getRelationInternalIds

public RelationLinkManager::getRelationInternalIds($relation_uri, $context = array())

Translates a REST URI into internal IDs.

Parameters

string $relation_uri: Relation URI to transform into internal IDs

Return value

array Array with keys 'entity_type', 'bundle' and 'field_name'.

Overrides RelationLinkManagerInterface::getRelationInternalIds

File

core/modules/rest/src/LinkManager/RelationLinkManager.php, line 80

Class

RelationLinkManager

Namespace

Drupal\rest\LinkManager

Code

public function getRelationInternalIds($relation_uri, $context = array()) {
  $relations = $this->getRelations($context);
  if (isset($relations[$relation_uri])) {
    return $relations[$relation_uri];
  }
  return FALSE;
}
doc_Drupal
2016-10-29 09:37:21
Comments
Leave a Comment

Please login to continue.