function TypeLinkManagerInterface::getTypeUri

Same name and namespace in other branches
  1. 8.9.x core/modules/hal/src/LinkManager/TypeLinkManagerInterface.php \Drupal\hal\LinkManager\TypeLinkManagerInterface::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.

1 method overrides TypeLinkManagerInterface::getTypeUri()
TypeLinkManager::getTypeUri in core/modules/hal/src/LinkManager/TypeLinkManager.php
Gets the URI that corresponds to a bundle.

File

core/modules/hal/src/LinkManager/TypeLinkManagerInterface.php, line 24

Class

TypeLinkManagerInterface

Namespace

Drupal\hal\LinkManager

Code

public function getTypeUri($entity_type, $bundle, $context = []);

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