function TypeLinkManager::getTypeInternalIds

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

Overrides TypeLinkManagerInterface::getTypeInternalIds

File

core/modules/hal/src/LinkManager/TypeLinkManager.php, line 105

Class

TypeLinkManager

Namespace

Drupal\hal\LinkManager

Code

public function getTypeInternalIds($type_uri, $context = []) {
    $types = $this->getTypes($context);
    if (isset($types[$type_uri])) {
        return $types[$type_uri];
    }
    return FALSE;
}

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