diff --git a/fieldable_path.info.yml b/fieldable_path.info.yml
index e74b949..800dc8c 100644
--- a/fieldable_path.info.yml
+++ b/fieldable_path.info.yml
@@ -3,6 +3,6 @@ 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/src/Plugin/Field/FieldType/FieldablePath.php b/src/Plugin/Field/FieldType/FieldablePath.php
index 9d6ac51..16f57ad 100644
--- a/src/Plugin/Field/FieldType/FieldablePath.php
+++ b/src/Plugin/Field/FieldType/FieldablePath.php
@@ -5,6 +5,7 @@ namespace Drupal\fieldable_path\Plugin\Field\FieldType;
 use Drupal\Core\Field\FieldItemBase;
 use Drupal\Core\Field\FieldStorageDefinitionInterface;
 use Drupal\Core\TypedData\DataDefinition;
+use Drupal\pathauto\PathautoGeneratorInterface;
 
 /**
  * Plugin implementation of the 'fieldable_path' field type.
@@ -106,7 +107,7 @@ class FieldablePath extends FieldItemBase {
         // we should  obtain alias which will be generated and set its value for
         // fieldable path field.
         $config = \Drupal::config('pathauto.settings');
-        $no_alias_update = $config->get('update_action') === \Drupal\pathauto\PathautoGeneratorInterface::UPDATE_ACTION_NO_NEW;
+        $no_alias_update = $config->get('update_action') === PathautoGeneratorInterface::UPDATE_ACTION_NO_NEW;
         if (!empty($existing_alias) && $no_alias_update) {
           $this->value = $existing_alias['alias'];
           return;
diff --git a/tests/src/Functional/FieldablePathBasicTest.php b/tests/src/Functional/FieldablePathBasicTest.php
index 81335dc..33982c0 100644
--- a/tests/src/Functional/FieldablePathBasicTest.php
+++ b/tests/src/Functional/FieldablePathBasicTest.php
@@ -3,15 +3,15 @@
 namespace Drupal\Tests\fieldable_path\Functional;
 
 use Drupal\field\Entity\FieldConfig;
-use Drupal\simpletest\WebTestBase;
 use Drupal\field\Entity\FieldStorageConfig;
+use Drupal\Tests\BrowserTestBase;
 
 /**
  * Provides basic test coverage for CRUD functionality.
  *
  * @group fieldable_path
  */
-class FieldablePathBasicTest extends WebTestBase {
+class FieldablePathBasicTest extends BrowserTestBase {
 
   /**
    * Modules to enable.
@@ -85,13 +85,13 @@ class FieldablePathBasicTest extends WebTestBase {
       ->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();
 