X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fhal%2Fsrc%2FLinkManager%2FRelationLinkManager.php;fp=web%2Fcore%2Fmodules%2Fhal%2Fsrc%2FLinkManager%2FRelationLinkManager.php;h=cf858c700898e45ff46b2fd3b4759b2740c94bb3;hp=ec631416c9bc823fa3d53ca7d5254d21536efb2f;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/hal/src/LinkManager/RelationLinkManager.php b/web/core/modules/hal/src/LinkManager/RelationLinkManager.php index ec631416c..cf858c700 100644 --- a/web/core/modules/hal/src/LinkManager/RelationLinkManager.php +++ b/web/core/modules/hal/src/LinkManager/RelationLinkManager.php @@ -13,7 +13,7 @@ use Symfony\Component\HttpFoundation\RequestStack; class RelationLinkManager extends LinkManagerBase implements RelationLinkManagerInterface { /** - * @var \Drupal\Core\Cache\CacheBackendInterface; + * @var \Drupal\Core\Cache\CacheBackendInterface */ protected $cache; @@ -70,10 +70,7 @@ class RelationLinkManager extends LinkManagerBase implements RelationLinkManager // override the RelationLinkManager class/service to return the desired URL. $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 - // @see https://www.drupal.org/node/2830467 - $this->moduleHandler->alter('rest_relation_uri', $uri, $context); + $this->moduleHandler->alterDeprecated('This hook is deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0. Implement hook_hal_relation_uri_alter() instead.', 'rest_relation_uri', $uri, $context); return $uri; }