public function LinkManager::getTypeUri in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/rest/src/LinkManager/LinkManager.php \Drupal\rest\LinkManager\LinkManager::getTypeUri()
Gets the URI that corresponds to a bundle.
When using hypermedia formats, this URI can be used to indicate which bundle the data represents. Documentation about required and optional fields can also be provided at this URI.
Parameters
$entity_type: The bundle's entity type.
$bundle: The bundle name.
array $context: (optional) Optional serializer/normalizer context.
Return value
string The corresponding URI for the bundle.
Overrides TypeLinkManagerInterface::getTypeUri
File
- core/
modules/ rest/ src/ LinkManager/ LinkManager.php, line 41 - Contains \Drupal\rest\LinkManager\LinkManager.
Class
Namespace
Drupal\rest\LinkManagerCode
public function getTypeUri($entity_type, $bundle, $context = array()) {
return $this->typeLinkManager
->getTypeUri($entity_type, $bundle, $context);
}