comparison 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
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
66 // account unclean URLs, language prefixing, or anything else that would be 66 // account unclean URLs, language prefixing, or anything else that would be
67 // required for Drupal to be able to respond with content at this URL. If a 67 // required for Drupal to be able to respond with content at this URL. If a
68 // module is installed that adds such content, but requires this URL to be 68 // module is installed that adds such content, but requires this URL to be
69 // different (e.g., include a language prefix), then the module must also 69 // different (e.g., include a language prefix), then the module must also
70 // override the RelationLinkManager class/service to return the desired URL. 70 // override the RelationLinkManager class/service to return the desired URL.
71 $uri = $this->getLinkDomain() . "/rest/relation/$entity_type/$bundle/$field_name"; 71 $uri = $this->getLinkDomain($context) . "/rest/relation/$entity_type/$bundle/$field_name";
72 $this->moduleHandler->alter('hal_relation_uri', $uri, $context); 72 $this->moduleHandler->alter('hal_relation_uri', $uri, $context);
73 // @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0. This 73 // @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0. This
74 // hook is invoked to maintain backwards compatibility 74 // hook is invoked to maintain backwards compatibility
75 // @see https://www.drupal.org/node/2830467 75 // @see https://www.drupal.org/node/2830467
76 $this->moduleHandler->alter('rest_relation_uri', $uri, $context); 76 $this->moduleHandler->alter('rest_relation_uri', $uri, $context);