diff --git a/linked_data_field.module b/linked_data_field.module
index 810c828..83b39fd 100644
--- a/linked_data_field.module
+++ b/linked_data_field.module
@@ -4,21 +4,14 @@
  * @file
  * Contains linked_data_field.module.
  */
-
+use Drupal\Core\Hook\Attribute\LegacyHook;
+use Drupal\linked_data_field\Hook\LinkedDataFieldHooks;
 use Drupal\Core\Routing\RouteMatchInterface;
 
 /**
  * Implements hook_help().
  */
+#[LegacyHook]
 function linked_data_field_help($route_name, RouteMatchInterface $route_match) {
-  switch ($route_name) {
-    // Main module help for the linked_data_field module.
-    case 'help.page.linked_data_field':
-      $output = '';
-      $output .= '<h3>' . t('About') . '</h3>';
-      $output .= '<p>' . t('Subjects that link to Library of Congress authority records') . '</p>';
-      return $output;
-
-    default:
-  }
+  return \Drupal::service(LinkedDataFieldHooks::class)->help($route_name, $route_match);
 }
diff --git a/linked_data_field.services.yml b/linked_data_field.services.yml
index f5cb423..c5800d4 100644
--- a/linked_data_field.services.yml
+++ b/linked_data_field.services.yml
@@ -6,3 +6,7 @@ services:
   plugin.manager.linked_data_endpoint_type_plugin:
     class: Drupal\linked_data_field\Plugin\LinkedDataEndpointTypePluginManager
     parent: default_plugin_manager
+
+  Drupal\linked_data_field\Hook\LinkedDataFieldHooks:
+    class: Drupal\linked_data_field\Hook\LinkedDataFieldHooks
+    autowire: true
diff --git a/src/Hook/LinkedDataFieldHooks.php b/src/Hook/LinkedDataFieldHooks.php
new file mode 100644
index 0000000..7e8aea6
--- /dev/null
+++ b/src/Hook/LinkedDataFieldHooks.php
@@ -0,0 +1,30 @@
+<?php
+
+namespace Drupal\linked_data_field\Hook;
+
+use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\Core\Hook\Attribute\Hook;
+use Drupal\Core\StringTranslation\StringTranslationTrait;
+/**
+ * Hook implementations for linked_data_field.
+ */
+class LinkedDataFieldHooks
+{
+    use StringTranslationTrait;
+    /**
+     * Implements hook_help().
+     */
+    #[Hook('help')]
+    public function help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match)
+    {
+        switch ($route_name) {
+            // Main module help for the linked_data_field module.
+            case 'help.page.linked_data_field':
+                $output = '';
+                $output .= '<h3>' . $this->t('About') . '</h3>';
+                $output .= '<p>' . $this->t('Subjects that link to Library of Congress authority records') . '</p>';
+                return $output;
+            default:
+        }
+    }
+}
diff --git a/src/Plugin/EntityReferenceSelection/LinkedDataSelection.php b/src/Plugin/EntityReferenceSelection/LinkedDataSelection.php
index 9694af2..bf8bec1 100644
--- a/src/Plugin/EntityReferenceSelection/LinkedDataSelection.php
+++ b/src/Plugin/EntityReferenceSelection/LinkedDataSelection.php
@@ -104,7 +104,7 @@ class LinkedDataSelection extends DefaultSelection implements ContainerFactoryPl
    * @param \Drupal\Core\Entity\EntityRepositoryInterface $entity_repository
    *   The entity repository.
    */
-  public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, AccountInterface $current_user, EntityFieldManagerInterface $entity_field_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, EntityRepositoryInterface $entity_repository, $ld_entity_type_plugin_manager) {
+  public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, AccountInterface $current_user, EntityFieldManagerInterface $entity_field_manager, ?EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, EntityRepositoryInterface $entity_repository, $ld_entity_type_plugin_manager) {
     parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $module_handler, $current_user, $entity_field_manager, $entity_type_bundle_info, $entity_repository);
 
     $this->entityTypeManager = $entity_type_manager;
