RelationLinkManagerInterface::getRelationUri

public RelationLinkManagerInterface::getRelationUri($entity_type, $bundle, $field_name, $context = array())

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.

Parameters

string $entity_type: The bundle's entity type.

string $bundle: The bundle name.

string $field_name: The field name.

array $context: (optional) Optional serializer/normalizer context.

Return value

string The corresponding URI for the field.

File

core/modules/rest/src/LinkManager/RelationLinkManagerInterface.php, line 26

Class

RelationLinkManagerInterface

Namespace

Drupal\rest\LinkManager

Code

public function getRelationUri($entity_type, $bundle, $field_name, $context = array());
doc_Drupal
2016-10-29 09:37:23
Comments
Leave a Comment

Please login to continue.