You are here

public function LinkManager::getTypeInternalIds in Drupal 9

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

Get a bundle's Typed Data IDs based on a URI.

Parameters

string $type_uri: The type URI.

array $context: Context from the normalizer/serializer operation.

Return value

array|bool If the URI matches a bundle, returns an array containing entity_type and bundle. Otherwise, returns false.

Overrides TypeLinkManagerInterface::getTypeInternalIds

File

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

Class

LinkManager

Namespace

Drupal\hal\LinkManager

Code

public function getTypeInternalIds($type_uri, $context = []) {
  return $this->typeLinkManager
    ->getTypeInternalIds($type_uri, $context);
}