You are here

public function LinkManager::getRelationInternalIds in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/hal/src/LinkManager/LinkManager.php \Drupal\hal\LinkManager\LinkManager::getRelationInternalIds()

Translates a REST URI into internal IDs.

Parameters

string $relation_uri: Relation URI (or IANA link relation type) to transform into internal IDs.

Return value

array Array with keys 'entity_type_id', 'bundle' and 'field_name'. For backwards compatibility, the entity_type key returns the full entity type object, this will be removed before Drupal 9.0.

Overrides RelationLinkManagerInterface::getRelationInternalIds

File

core/modules/hal/src/LinkManager/LinkManager.php, line 58

Class

LinkManager

Namespace

Drupal\hal\LinkManager

Code

public function getRelationInternalIds($relation_uri) {
  return $this->relationLinkManager
    ->getRelationInternalIds($relation_uri);
}