diff --git a/fieldable_path.info.yml b/fieldable_path.info.yml
index e74b949..03ef82f 100644
--- a/fieldable_path.info.yml
+++ b/fieldable_path.info.yml
@@ -2,7 +2,7 @@ name: Fieldable Path
 description: Provides a fieldable mirror of "path" property for entities.
 
 type: module
-core: 8.x
+core_version_requirement: ^8.8 || ^9
 
 dependencies:
   - drupal:path
diff --git a/src/Controller/FieldablePathController.php b/src/Controller/FieldablePathController.php
index 68caaba..3c29f21 100644
--- a/src/Controller/FieldablePathController.php
+++ b/src/Controller/FieldablePathController.php
@@ -161,7 +161,7 @@ class FieldablePathController {
     // and check if any of those exist in the current entity.
     $entity_type = $entity->getEntityTypeId();
     $entity_bundle = $entity->bundle();
-    $bundle_fields = \Drupal::entityManager()->getFieldDefinitions($entity_type, $entity_bundle);
+    $bundle_fields = \Drupal::service('entity_field.manager')->getFieldDefinitions($entity_type, $entity_bundle);
 
     // Loop through the fields and searching for added
     // 'fieldable_path' field.
diff --git a/src/Plugin/Action/CopyPathAction.php b/src/Plugin/Action/CopyPathAction.php
index 04e2c68..8a0b261 100644
--- a/src/Plugin/Action/CopyPathAction.php
+++ b/src/Plugin/Action/CopyPathAction.php
@@ -31,7 +31,7 @@ class CopyPathAction extends ActionBase {
 
     // Load entity's internal path (i.e. /node/2).
     $internal_path = $entity->toUrl()->getInternalPath();
-    $alias = \Drupal::service('path.alias_manager')
+    $alias = \Drupal::service('path_alias.manager')
       ->getAliasByPath('/' . $internal_path);
 
     \Drupal::service('fieldable_path.controller')
diff --git a/tests/src/Functional/FieldablePathBasicTest.php b/tests/src/Functional/FieldablePathBasicTest.php
index 4a8d7f4..a6de9c0 100644
--- a/tests/src/Functional/FieldablePathBasicTest.php
+++ b/tests/src/Functional/FieldablePathBasicTest.php
@@ -85,13 +85,13 @@ class FieldablePathBasicTest extends BrowserTestBase {
       ->save();
 
     // Add the field to the node article form.
-    entity_get_form_display('node', 'article', 'default')
+    \Drupal::service('entity_display.repository')->getFormDisplay('node', 'article', 'default')
       ->setComponent($this->fieldName, [
         'type' => $this->fieldWidget,
       ])
       ->save();
 
-    entity_get_display('node', 'article', 'full')
+    \Drupal::service('entity_display.repository')->getViewDisplay('node', 'article', 'full')
       ->setComponent($this->fieldName)
       ->save();
 
