From c8d1f0b157cb65dc01a4cc7bf475105054d29455 Mon Sep 17 00:00:00 2001 From: Gabor Hojtsy Date: Tue, 11 Apr 2017 21:12:30 +0200 Subject: [PATCH] Issue #2108243 by Wim Leers, prics, linclark, YesCT: Document that HAL's RelationLinkManager(Interface) also supports registered link relation types --- .../hal/src/LinkManager/RelationLinkManagerInterface.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/hal/src/LinkManager/RelationLinkManagerInterface.php b/core/modules/hal/src/LinkManager/RelationLinkManagerInterface.php index 9a9c83913cc2..18d78637b023 100644 --- a/core/modules/hal/src/LinkManager/RelationLinkManagerInterface.php +++ b/core/modules/hal/src/LinkManager/RelationLinkManagerInterface.php @@ -21,7 +21,7 @@ interface RelationLinkManagerInterface extends ConfigurableLinkManagerInterface * (optional) Optional serializer/normalizer context. * * @return string - * The corresponding URI for the field. + * The corresponding URI (or IANA link relation type) for the field. */ public function getRelationUri($entity_type, $bundle, $field_name, $context = []); @@ -29,7 +29,7 @@ interface RelationLinkManagerInterface extends ConfigurableLinkManagerInterface * Translates a REST URI into internal IDs. * * @param string $relation_uri - * Relation URI to transform into internal IDs + * Relation URI (or IANA link relation type) to transform into internal IDs. * * @return array * Array with keys 'entity_type', 'bundle' and 'field_name'.