Mercurial > hg > isophonics-drupal-site
diff core/modules/hal/src/LinkManager/RelationLinkManager.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
line wrap: on
line diff
--- a/core/modules/hal/src/LinkManager/RelationLinkManager.php Mon Apr 23 09:33:26 2018 +0100 +++ b/core/modules/hal/src/LinkManager/RelationLinkManager.php Mon Apr 23 09:46:53 2018 +0100 @@ -68,7 +68,7 @@ // module is installed that adds such content, but requires this URL to be // different (e.g., include a language prefix), then the module must also // override the RelationLinkManager class/service to return the desired URL. - $uri = $this->getLinkDomain() . "/rest/relation/$entity_type/$bundle/$field_name"; + $uri = $this->getLinkDomain($context) . "/rest/relation/$entity_type/$bundle/$field_name"; $this->moduleHandler->alter('hal_relation_uri', $uri, $context); // @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0. This // hook is invoked to maintain backwards compatibility