function TypeLinkManager::getTypes
Same name in other branches
- 8.9.x core/modules/hal/src/LinkManager/TypeLinkManager.php \Drupal\hal\LinkManager\TypeLinkManager::getTypes()
Get the array of type links.
Parameters
array $context: Context from the normalizer/serializer operation.
Return value
array An array of typed data ids (entity_type and bundle) keyed by corresponding type URI.
1 call to TypeLinkManager::getTypes()
- TypeLinkManager::getTypeInternalIds in core/
modules/ hal/ src/ LinkManager/ TypeLinkManager.php - Get a bundle's Typed Data IDs based on a URI.
File
-
core/
modules/ hal/ src/ LinkManager/ TypeLinkManager.php, line 110
Class
Namespace
Drupal\hal\LinkManagerCode
protected function getTypes($context = []) {
$cid = 'hal:links:types:' . $this->getLinkDomain($context);
$cache = $this->cache
->get($cid);
if (!$cache) {
$data = $this->writeCache($context);
}
else {
$data = $cache->data;
}
return $data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.