3 namespace Drupal\hal\LinkManager;
5 interface TypeLinkManagerInterface extends ConfigurableLinkManagerInterface {
8 * Gets the URI that corresponds to a bundle.
10 * When using hypermedia formats, this URI can be used to indicate which
11 * bundle the data represents. Documentation about required and optional
12 * fields can also be provided at this URI.
15 * The bundle's entity type.
18 * @param array $context
19 * (optional) Optional serializer/normalizer context.
22 * The corresponding URI for the bundle.
24 public function getTypeUri($entity_type, $bundle, $context = []);
27 * Get a bundle's Typed Data IDs based on a URI.
29 * @param string $type_uri
31 * @param array $context
32 * Context from the normalizer/serializer operation.
35 * If the URI matches a bundle, returns an array containing entity_type and
36 * bundle. Otherwise, returns false.
38 public function getTypeInternalIds($type_uri, $context = []);