diff --git a/src/Form/AjaxToggleForm.php b/src/Form/AjaxToggleForm.php
index 885bfce..f14cd7b 100644
--- a/src/Form/AjaxToggleForm.php
+++ b/src/Form/AjaxToggleForm.php
@@ -190,7 +190,7 @@ class AjaxToggleForm extends FormBase {
   }
 
     /**
-     * Check if the combo of entity + field access are satisfased.
+     * Check if the combo of entity + field access are satisfied.
      *
      * @return bool
      *   True if current user can edit the entity AND have access to current field.
diff --git a/tests/src/Functional/ToggleEditableFieldsUiTest.php b/tests/src/Functional/ToggleEditableFieldsUiTest.php
index 19846d5..b3fe046 100644
--- a/tests/src/Functional/ToggleEditableFieldsUiTest.php
+++ b/tests/src/Functional/ToggleEditableFieldsUiTest.php
@@ -3,8 +3,7 @@
 namespace Drupal\Tests\toggle_editable_fields\Functional;
 
 use Drupal\Component\Render\FormattableMarkup;
-use Drupal\Component\Utility\Unicode;
-use Drupal\field_ui\Tests\FieldUiTestTrait;
+use Drupal\Tests\field_ui\Traits\FieldUiTestTrait;
 use Drupal\Tests\BrowserTestBase;
 use Drupal\toggle_editable_fields\Plugin\Field\FieldFormatter\ToggleEditableFormatter;
 
@@ -80,7 +79,7 @@ class ToggleEditableFieldsUiTest extends BrowserTestBase {
 
     // Add a boolean field to the newly-created type.
     $label = $this->randomMachineName();
-    $field_name = Unicode::strtolower($label);
+    $field_name = mb_strtolower($label);
     $this->createBooleanField($label, $field_name, $this->nodeType1->id(), 'toggle_editable_formatter', [], [], ['label' => 'hidden', 'region' => 'content']);
 
     $this->drupalGet("admin/structure/types/manage/{$this->nodeType1->id()}/display");
diff --git a/toggle_editable_fields.info.yml b/toggle_editable_fields.info.yml
index df49496..8477b41 100644
--- a/toggle_editable_fields.info.yml
+++ b/toggle_editable_fields.info.yml
@@ -1,7 +1,7 @@
 name: Toggle Editable Fields
 type: module
 description: It provides a toggle formatter to edit fields in it view representation for Boolean field type.
-core: 8.x
+core_version_requirement: ^8 || ^9 || ^10
 package: Fields
 dependencies:
   - drupal:field
diff --git a/toggle_editable_fields.install b/toggle_editable_fields.install
index fe06046..7377696 100644
--- a/toggle_editable_fields.install
+++ b/toggle_editable_fields.install
@@ -11,26 +11,14 @@
 function toggle_editable_fields_requirements($phase) {
 
   $requirements = [];
-
-  $path = DRUPAL_ROOT . '/libraries/bootstrap-toggle/js/bootstrap-toggle.min.js';
-  if (\Drupal::moduleHandler()->moduleExists('libraries')) {
-    $path = libraries_get_path('bootstrap-toggle') . '/js/bootstrap-toggle.min.js';
+  if ('runtime' !== $phase) {
+    return $requirements;
   }
 
-  // Is the library found in the root libraries path.
-  $library_found = file_exists($path);
-  // If library is not found, then look in the current profile libraries path.
-  if (!$library_found) {
-    $profile_path = drupal_get_path('profile', \Drupal::installProfile());
-    $profile_path .= '/libraries/bootstrap-toggle/js/bootstrap-toggle.min.js';
-    // Is the library found in the current profile libraries path.
-    $library_found = file_exists($profile_path);
-  }
-
-  if (!$library_found) {
+  if (!toggle_editable_fields_has_library_files()) {
     $requirements['bootstrap_toggle_library'] = [
       'title' => t('Bootstrap Toggle library missing'),
-      'description' => t('Bootstrap Toggle requires the bootstrap-toggle.min.js library.
+      'description' => t('Bootstrap Toggle requires bootstrap-toggle.min.js library.
         Download it (https://github.com/minhur/bootstrap-toggle) and place it in the
         libraries folder (/libraries)'),
       'severity' => REQUIREMENT_ERROR,
@@ -39,3 +27,38 @@ function toggle_editable_fields_requirements($phase) {
 
   return $requirements;
 }
+
+/**
+ * Helper function that determine if `boostrap-toogle` library files are founded.
+ *
+ * @return bool
+ *   True if files is founded or false if not.
+ */
+function toggle_editable_fields_has_library_files() {
+  $library_service_id = 'library.libraries_directory_file_finder';
+  $boostrap_toogle_finded_file = 'bootstrap-toggle/js/bootstrap-toggle.min.js';
+
+  if (\Drupal::hasService($library_service_id)) {
+    /** @var \Drupal\Core\Asset\LibrariesDirectoryFileFinder $library_file_finder */
+    $library_file_finder = \Drupal::service($library_service_id);
+
+    return (bool) $library_file_finder->find($boostrap_toogle_finded_file);
+  }
+
+  $boostrap_toogle_file_path = DRUPAL_ROOT . "/libraries/$boostrap_toogle_finded_file";
+  if (\Drupal::moduleHandler()->moduleExists('libraries')) {
+    $boostrap_toogle_file_path = libraries_get_path('bootstrap-toggle') . '/js/bootstrap-toggle.min.js';
+  }
+
+  $is_library_found = file_exists($boostrap_toogle_file_path);
+  if (!$is_library_found) {
+    $current_profile_path = drupal_get_path(
+      'profile',
+      \Drupal::installProfile()
+    );
+    $current_profile_path .= "/libraries/$boostrap_toogle_finded_file";
+    $is_library_found = file_exists($current_profile_path);
+  }
+
+  return $is_library_found;
+}
