public function TypeLinkManager::getTypeUri

Get a type link for a bundle.

Parameters

string $entity_type: The bundle's entity type.

string $bundle: The name of the bundle.

Return value

array The URI that identifies this bundle.

Overrides TypeLinkManagerInterface::getTypeUri

1 call to TypeLinkManager::getTypeUri()
TypeLinkManager::writeCache in drupal/core/modules/rest/lib/Drupal/rest/LinkManager/TypeLinkManager.php
Writes the cache of type links.

File

drupal/core/modules/rest/lib/Drupal/rest/LinkManager/TypeLinkManager.php, line 42
Contains \Drupal\rest\LinkManager\TypeLinkManager.

Class

TypeLinkManager

Namespace

Drupal\rest\LinkManager

Code

public function getTypeUri($entity_type, $bundle) {

  // @todo Make the base path configurable.
  return url("rest/type/{$entity_type}/{$bundle}", array(
    'absolute' => TRUE,
  ));
}