function RelationLinkManager::getRelationInternalIds

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

Overrides RelationLinkManagerInterface::getRelationInternalIds

File

core/modules/hal/src/LinkManager/RelationLinkManager.php, line 117

Class

RelationLinkManager

Namespace

Drupal\hal\LinkManager

Code

public function getRelationInternalIds($relation_uri, $context = []) {
    $relations = $this->getRelations($context);
    if (isset($relations[$relation_uri])) {
        return $relations[$relation_uri];
    }
    return FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.