public function 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.

Return value

string The corresponding URI for the bundle.

2 methods override TypeLinkManagerInterface::getTypeUri()
LinkManager::getTypeUri in drupal/core/modules/rest/lib/Drupal/rest/LinkManager/LinkManager.php
Implements \Drupal\rest\LinkManager\TypeLinkManagerInterface::getTypeUri().
TypeLinkManager::getTypeUri in drupal/core/modules/rest/lib/Drupal/rest/LinkManager/TypeLinkManager.php
Get a type link for a bundle.

File

drupal/core/modules/rest/lib/Drupal/rest/LinkManager/TypeLinkManagerInterface.php, line 27
Contains \Drupal\rest\LinkManager\TypeLinkManagerInterface.

Class

TypeLinkManagerInterface

Namespace

Drupal\rest\LinkManager

Code

public function getTypeUri($entity_type, $bundle);