interface TypeLinkManagerInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/rest/src/LinkManager/TypeLinkManagerInterface.php \Drupal\rest\LinkManager\TypeLinkManagerInterface
Hierarchy
- interface \Drupal\rest\LinkManager\ConfigurableLinkManagerInterface
- interface \Drupal\rest\LinkManager\TypeLinkManagerInterface
Expanded class hierarchy of TypeLinkManagerInterface
All classes that implement TypeLinkManagerInterface
File
- core/
modules/ rest/ src/ LinkManager/ TypeLinkManagerInterface.php, line 10 - Contains \Drupal\rest\LinkManager\TypeLinkManagerInterface.
Namespace
Drupal\rest\LinkManagerView source
interface TypeLinkManagerInterface extends ConfigurableLinkManagerInterface {
/**
* 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.
*
* @param $entity_type
* The bundle's entity type.
* @param $bundle
* The bundle name.
* @param array $context
* (optional) Optional serializer/normalizer context.
*
* @return string
* The corresponding URI for the bundle.
*/
public function getTypeUri($entity_type, $bundle, $context = array());
/**
* Get a bundle's Typed Data IDs based on a URI.
*
* @param string $type_uri
* The type URI.
* @param array $context
* Context from the normalizer/serializer operation.
*
* @return array | boolean
* If the URI matches a bundle, returns an array containing entity_type and
* bundle. Otherwise, returns false.
*/
public function getTypeInternalIds($type_uri, $context = array());
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableLinkManagerInterface:: |
public | function | Sets the link domain used in constructing link URIs. | 1 |
TypeLinkManagerInterface:: |
public | function | Get a bundle's Typed Data IDs based on a URI. | 2 |
TypeLinkManagerInterface:: |
public | function | Gets the URI that corresponds to a bundle. | 2 |