LinkManager
class LinkManager implements LinkManagerInterface (View source)
Properties
| protected TypeLinkManagerInterface | $typeLinkManager | The type link manager. |
|
| protected RelationLinkManagerInterface | $relationLinkManager | The relation link manager. |
Methods
Constructor.
Gets the URI that corresponds to a bundle.
Get a bundle's Typed Data IDs based on a URI.
Gets the URI that corresponds to a field.
Translates a REST URI into internal IDs.
Sets the link domain used in constructing link URIs.
Details
__construct(TypeLinkManagerInterface $type_link_manager, RelationLinkManagerInterface $relation_link_manager)
Constructor.
string
getTypeUri($entity_type, $bundle, array $context = [])
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.
array|bool
getTypeInternalIds(string $type_uri, array $context = [])
Get a bundle's Typed Data IDs based on a URI.
string
getRelationUri(string $entity_type, string $bundle, string $field_name, array $context = [])
Gets the URI that corresponds to a field.
When using hypermedia formats, this URI can be used to indicate which field the data represents. Documentation about this field can also be provided at this URI.
array
getRelationInternalIds(string $relation_uri)
Translates a REST URI into internal IDs.
$this
setLinkDomain(string $domain)
Sets the link domain used in constructing link URIs.