diff --git a/inline_entity_form_preview.module b/inline_entity_form_preview.module
index 2b2b590..c202bfb 100644
--- a/inline_entity_form_preview.module
+++ b/inline_entity_form_preview.module
@@ -1,21 +1,17 @@
 <?php
+
+use Drupal\Core\Hook\Attribute\LegacyHook;
+use Drupal\inline_entity_form_preview\Hook\InlineEntityFormPreviewHooks;
+use Drupal\Core\Routing\RouteMatchInterface;
+
 /**
  * @file:
  *   Contains the module file for the inline_entity_form_preview module.
  */
-
 /**
  * Implements hook_help().
  */
-function inline_entity_form_preview_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match) {
-  switch ($route_name) {
-    // Main module help for the inline_entity_form_preview module.
-    case 'help.page.inline_entity_form_preview':
-      $output = '';
-      $output .= '<h3>' . t('About') . '</h3>';
-      $output .= '<p>' . t('Provides a preview column to display referenced entities directly.') . '</p>';
-      return $output;
-
-    default:
-  }
+#[LegacyHook]
+function inline_entity_form_preview_help($route_name, RouteMatchInterface $route_match) {
+  return \Drupal::service(InlineEntityFormPreviewHooks::class)->help($route_name, $route_match);
 }
diff --git a/inline_entity_form_preview.services.yml b/inline_entity_form_preview.services.yml
index 836a814..7c5939b 100644
--- a/inline_entity_form_preview.services.yml
+++ b/inline_entity_form_preview.services.yml
@@ -2,3 +2,7 @@ services:
   inline_entity_form_preview.builder:
     class: Drupal\inline_entity_form_preview\Service\PreviewBuilder
     arguments: ['@entity_type.manager']
+
+  Drupal\inline_entity_form_preview\Hook\InlineEntityFormPreviewHooks:
+    class: Drupal\inline_entity_form_preview\Hook\InlineEntityFormPreviewHooks
+    autowire: true
diff --git a/src/Hook/InlineEntityFormPreviewHooks.php b/src/Hook/InlineEntityFormPreviewHooks.php
new file mode 100644
index 0000000..2571065
--- /dev/null
+++ b/src/Hook/InlineEntityFormPreviewHooks.php
@@ -0,0 +1,34 @@
+<?php
+
+namespace Drupal\inline_entity_form_preview\Hook;
+
+use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\Core\Hook\Attribute\Hook;
+use Drupal\Core\StringTranslation\StringTranslationTrait;
+/**
+ * Hook implementations for inline_entity_form_preview.
+ */
+class InlineEntityFormPreviewHooks
+{
+    use StringTranslationTrait;
+    /**
+     * @file:
+     *   Contains the module file for the inline_entity_form_preview module.
+     */
+    /**
+     * Implements hook_help().
+     */
+    #[Hook('help')]
+    public function help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match)
+    {
+        switch ($route_name) {
+            // Main module help for the inline_entity_form_preview module.
+            case 'help.page.inline_entity_form_preview':
+                $output = '';
+                $output .= '<h3>' . $this->t('About') . '</h3>';
+                $output .= '<p>' . $this->t('Provides a preview column to display referenced entities directly.') . '</p>';
+                return $output;
+            default:
+        }
+    }
+}
