class RelationLinkManager extends LinkManagerBase implements RelationLinkManagerInterface {
/**
- * @var \Drupal\Core\Cache\CacheBackendInterface;
+ * @var \Drupal\Core\Cache\CacheBackendInterface
*/
protected $cache;
// 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;
}