 core/modules/hal/src/LinkManager/RelationLinkManager.php | 2 +-
 core/modules/hal/src/LinkManager/TypeLinkManager.php     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/modules/hal/src/LinkManager/RelationLinkManager.php b/core/modules/hal/src/LinkManager/RelationLinkManager.php
index ec63141..719dc70 100644
--- a/core/modules/hal/src/LinkManager/RelationLinkManager.php
+++ b/core/modules/hal/src/LinkManager/RelationLinkManager.php
@@ -73,7 +73,7 @@ public function getRelationUri($entity_type, $bundle, $field_name, $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('rest_relation_uri', $uri, $context);
     return $uri;
   }
 
diff --git a/core/modules/hal/src/LinkManager/TypeLinkManager.php b/core/modules/hal/src/LinkManager/TypeLinkManager.php
index 47206d8..11922c0 100644
--- a/core/modules/hal/src/LinkManager/TypeLinkManager.php
+++ b/core/modules/hal/src/LinkManager/TypeLinkManager.php
@@ -74,7 +74,7 @@ public function getTypeUri($entity_type, $bundle, $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_type_uri', $uri, $context);
+    $this->moduleHandler->alterDeprecated('rest_type_uri', $uri, $context);
     return $uri;
   }
 
