You are here

public function TypeLinkManagerInterface::getTypeUri in Zircon Profile 8.0

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

2 methods override TypeLinkManagerInterface::getTypeUri()
LinkManager::getTypeUri in core/modules/rest/src/LinkManager/LinkManager.php
Gets the URI that corresponds to a bundle.
TypeLinkManager::getTypeUri in core/modules/rest/src/LinkManager/TypeLinkManager.php
Gets the URI that corresponds to a bundle.

File

core/modules/rest/src/LinkManager/TypeLinkManagerInterface.php, line 29
Contains \Drupal\rest\LinkManager\TypeLinkManagerInterface.

Class

TypeLinkManagerInterface

Namespace

Drupal\rest\LinkManager

Code

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