diff --git a/admin_toolbar.install b/admin_toolbar.install
index 3f3d91b..a17b668 100644
--- a/admin_toolbar.install
+++ b/admin_toolbar.install
@@ -25,7 +25,7 @@ function admin_toolbar_update_8002() {
   $config = $config_factory->getEditable('admin_toolbar.settings');
   if (empty($config->get('menu_depth'))) {
     $config->set('menu_depth', 4);
-    $config->save(TRUE);
+    $config->save();
   }
 }
 
@@ -65,16 +65,14 @@ function admin_toolbar_update_8004() {
     $hoverintent_behavior_config_default['enabled'] = $hoverintent_functionality;
     // Remove the 'hoverintent_functionality' configuration from the
     // 'admin_toolbar_tools.settings'.
-    $admin_toolbar_tools_config->clear('hoverintent_functionality')
-      ->save(TRUE);
+    $admin_toolbar_tools_config->clear('hoverintent_functionality')->save();
   }
 
   // If the admin_toolbar_tools config is new, it means that the module was
   // not installed and therefore had no value for the config.
   \Drupal::service('config.factory')
     ->getEditable('admin_toolbar.settings')
-    ->set('hoverintent_behavior', $hoverintent_behavior_config_default)
-    ->save(TRUE);
+    ->set('hoverintent_behavior', $hoverintent_behavior_config_default)->save();
 
 }
 
@@ -84,8 +82,7 @@ function admin_toolbar_update_8004() {
 function admin_toolbar_update_8005() {
   \Drupal::service('config.factory')
     ->getEditable('admin_toolbar.settings')
-    ->set('enable_toggle_shortcut', FALSE)
-    ->save(TRUE);
+    ->set('enable_toggle_shortcut', FALSE)->save();
 }
 
 /**
@@ -113,6 +110,6 @@ function admin_toolbar_update_8006() {
 function admin_toolbar_update_8007() {
   $config = \Drupal::configFactory()->getEditable('admin_toolbar.settings');
   if ($config->get('sticky_behavior') === NULL) {
-    $config->set('sticky_behavior', 'enabled')->save(TRUE);
+    $config->set('sticky_behavior', 'enabled')->save();
   }
 }
diff --git a/admin_toolbar.module b/admin_toolbar.module
index 027c599..07fae30 100644
--- a/admin_toolbar.module
+++ b/admin_toolbar.module
@@ -7,72 +7,25 @@
 
 declare(strict_types=1);
 
+use Drupal\Core\Hook\Attribute\LegacyHook;
+use Drupal\admin_toolbar\Hook\AdminToolbarHooks;
 use Drupal\Component\Utility\Html;
 use Drupal\Component\Utility\NestedArray;
-use Drupal\Core\Url;
-use Drupal\admin_toolbar\Enum\AdminToolbarStickyBehavior;
-use Drupal\admin_toolbar\Render\Element\AdminToolbar;
 
 /**
  * Implements hook_help().
  */
+#[LegacyHook]
 function admin_toolbar_help($route_name) {
-  switch ($route_name) {
-    case 'help.page.admin_toolbar':
-      $variables = [
-        ':toolbar' => Url::fromRoute('help.page', ['name' => 'toolbar'])->toString(),
-        ':automated_cron' => (\Drupal::moduleHandler()->moduleExists('automated_cron')) ? Url::fromRoute('help.page', ['name' => 'automated_cron'])->toString() : '#',
-      ];
-      $output = '';
-      $output .= '<h3>' . t('About') . '</h3>';
-      $output .= '<p>' . t('The Admin Toolbar module enhances the <a href=":toolbar">Toolbar</a> module by providing fast access to all the administrative links at the top of your site. Admin Toolbar remains a very "lightweight" module by closely integrating with all Toolbar functionality. It can be used in conjunction with all the sub modules included on Admin Toolbar, for quick access to system commands such as Flush all caches, <a href=":automated_cron">Run cron</a>, Run Updates, etc.', $variables) . '</p>';
-      $output .= '<h3>' . t('Uses') . '</h3>';
-      $output .= '<p>' . t('The Admin Toolbar greatly improves the user experience for those who regularly interact with the site Toolbar by providing fast, full access to all links in the site Toolbar without having to click to get there.') . '</p>';
-      return $output;
-  }
+  return \Drupal::service(AdminToolbarHooks::class)->help($route_name);
 }
 
 /**
  * Implements hook_toolbar_alter().
  */
+#[LegacyHook]
 function admin_toolbar_toolbar_alter(&$items) {
-  $items['administration']['tray']['toolbar_administration']['#pre_render'] = [
-    [AdminToolbar::class, 'preRenderTray'],
-  ];
-  $admin_toolbar_config = \Drupal::config('admin_toolbar.settings');
-  $items['administration']['#attached']['library'][] = 'admin_toolbar/toolbar.tree';
-
-  // Add sticky behavior libraries based on the configuration.
-  $sticky_behavior = AdminToolbarStickyBehavior::tryFrom((string) $admin_toolbar_config->get('sticky_behavior')) ?? AdminToolbarStickyBehavior::Enabled;
-  switch ($sticky_behavior) {
-    case AdminToolbarStickyBehavior::Disabled:
-      $items['administration']['#attached']['library'][] = 'admin_toolbar/toolbar.disable_sticky';
-      break;
-
-    case AdminToolbarStickyBehavior::HideOnScrollDown:
-      $items['administration']['#attached']['library'][] = 'admin_toolbar/toolbar.sticky_behavior';
-      break;
-
-    default:
-      break;
-  }
-  // Add the hoverIntent behavior library if enabled.
-  $hoverintent_behavior = $admin_toolbar_config->get('hoverintent_behavior');
-  if (!empty($hoverintent_behavior['enabled'])) {
-    // Use the hoverIntent plugin library.
-    $items['administration']['#attached']['library'][] = 'admin_toolbar/toolbar.tree.hoverintent';
-    // Add the configured hoverIntent settings values to the JS of the toolbar.
-    $items['administration']['#attached']['drupalSettings']['hoverIntentTimeout'] = $hoverintent_behavior['timeout'];
-  }
-  else {
-    // Use default Admin Toolbar hover library.
-    $items['administration']['#attached']['library'][] = 'admin_toolbar/toolbar.tree.hover';
-  }
-
-  // Add the toggle toolbar keyboard shortcut library if enabled.
-  if ($admin_toolbar_config->get('enable_toggle_shortcut')) {
-    $items['administration']['#attached']['library'][] = 'admin_toolbar/toolbar.toggle_shortcut';
-  }
+  \Drupal::service(AdminToolbarHooks::class)->toolbarAlter($items);
 }
 
 /**
diff --git a/admin_toolbar.services.yml b/admin_toolbar.services.yml
new file mode 100644
index 0000000..3758f5e
--- /dev/null
+++ b/admin_toolbar.services.yml
@@ -0,0 +1,5 @@
+
+services:
+  Drupal\admin_toolbar\Hook\AdminToolbarHooks:
+    class: Drupal\admin_toolbar\Hook\AdminToolbarHooks
+    autowire: true
diff --git a/admin_toolbar_links_access_filter/admin_toolbar_links_access_filter.install b/admin_toolbar_links_access_filter/admin_toolbar_links_access_filter.install
index 42bc764..7996666 100644
--- a/admin_toolbar_links_access_filter/admin_toolbar_links_access_filter.install
+++ b/admin_toolbar_links_access_filter/admin_toolbar_links_access_filter.install
@@ -1,5 +1,12 @@
 <?php
 
+/**
+ * @file
+ */
+
+use Drupal\Component\Utility\DeprecationHelper;
+use Drupal\Core\Extension\Requirement\RequirementSeverity;
+
 /**
  * @file
  * Install/uninstall or update functions for Admin Toolbar Links Access Filter.
@@ -23,7 +30,7 @@ See issues: <a href=":issue_url1">#3463291</a> and <a href=":issue_url2">#348724
           ':issue_url1' => 'https://www.drupal.org/node/3463291',
           ':issue_url2' => 'https://www.drupal.org/node/3487246',
         ]),
-        'severity' => REQUIREMENT_ERROR,
+        'severity' => DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '11.2.0', fn() => RequirementSeverity::Error, fn() => REQUIREMENT_ERROR),
       ];
     }
   }
diff --git a/admin_toolbar_search/admin_toolbar_search.install b/admin_toolbar_search/admin_toolbar_search.install
index 2949f9a..6e762f9 100644
--- a/admin_toolbar_search/admin_toolbar_search.install
+++ b/admin_toolbar_search/admin_toolbar_search.install
@@ -22,8 +22,7 @@ function admin_toolbar_search_update_8001() {
     // Convert the existing field value from an integer to a boolean.
     ->set('display_menu_item', (bool) $display_menu_item)
     // Enable the keyboard shortcut by default.
-    ->set('enable_keyboard_shortcut', TRUE)
-    ->save(TRUE);
+    ->set('enable_keyboard_shortcut', TRUE)->save();
 }
 
 /**
@@ -39,6 +38,5 @@ function admin_toolbar_search_update_8002() {
 function admin_toolbar_search_update_8003() {
   \Drupal::configFactory()
     ->getEditable('admin_toolbar_search.settings')
-    ->set('open_results_in_new_tab', FALSE)
-    ->save(TRUE);
+    ->set('open_results_in_new_tab', FALSE)->save();
 }
diff --git a/admin_toolbar_search/admin_toolbar_search.module b/admin_toolbar_search/admin_toolbar_search.module
index 5bc7439..01a8cf8 100644
--- a/admin_toolbar_search/admin_toolbar_search.module
+++ b/admin_toolbar_search/admin_toolbar_search.module
@@ -7,26 +7,15 @@
 
 declare(strict_types=1);
 
-use Drupal\admin_toolbar_search\Enum\AdminToolbarSearchCssClass;
-use Drupal\admin_toolbar_search\Enum\AdminToolbarSearchHtmlId;
-use Drupal\Component\Utility\NestedArray;
-use Drupal\Core\Url;
+use Drupal\Core\Hook\Attribute\LegacyHook;
+use Drupal\admin_toolbar_search\Hook\AdminToolbarSearchHooks;
 
 /**
  * Implements hook_help().
  */
+#[LegacyHook]
 function admin_toolbar_search_help($route_name) {
-  switch ($route_name) {
-    // Main user documentation page for the Admin Toolbar Search module.
-    case 'help.page.admin_toolbar_search':
-      $output = '';
-      $output .= '<h3>' . t('About') . '</h3>';
-      $output .= '<p>' . t('Type text to quickly search for menu links in the Admin Toolbar!<br>') . '</p>';
-      $output .= '<p>' . t('The Admin Toolbar Search module adds an easy-to-use JS autocomplete filter of the links in the Administration menu.<br>It is very convenient for finding quickly an administration configuration page without knowing where its menu link could be in the Administration dropdown menu or the organization of the site.') . '</p>';
-      $output .= '<p>' . t('Hold the Ctrl or Cmd key while selecting a search result to open the link in a new tab, or the Shift key to open it in a new window.') . '</p>';
-
-      return $output;
-  }
+  return \Drupal::service(AdminToolbarSearchHooks::class)->help($route_name);
 }
 
 /**
@@ -49,156 +38,7 @@ function admin_toolbar_search_help($route_name) {
  * @see admin_toolbar_search/css/admin_toolbar_search.css
  * @see admin_toolbar_search/js/admin_toolbar_search.js
  */
+#[LegacyHook]
 function admin_toolbar_search_toolbar() {
-  // Load the admin toolbar search only if the user has the required permission.
-  if (!\Drupal::currentUser()->hasPermission('use admin toolbar search')) {
-    return [];
-  }
-  // Check if the Admin Toolbar Tools module is enabled to load extra links.
-  $admin_toolbar_tools_enabled = \Drupal::service('module_handler')
-    ->moduleExists('admin_toolbar_tools');
-
-  // Load the Admin Toolbar Search settings from the configuration.
-  $admin_toolbar_search_settings = \Drupal::config('admin_toolbar_search.settings');
-  // Get the 'display_menu_item' setting to determine if the search field is
-  // displayed directly in the toolbar or in a tray under a menu item tab.
-  $display_menu_item = $admin_toolbar_search_settings->get('display_menu_item');
-  // Admin Toolbar Search field default label, title and placeholder text.
-  $search_field_title = t('Search');
-  $search_field_placeholder = t('Search for menu links');
-  $search_field_title_attribute = t('Type text to search for menu links in the admin toolbar.');
-
-  // Ensure the toolbar items are rebuilt when the user permissions or module's
-  // settings change and keep the render arrays cached.
-  $toolbar_search_item_cache = [
-    'contexts' => [
-      'user.permissions',
-    ],
-    'tags' => [
-      'config:admin_toolbar_search.settings',
-    ],
-  ];
-  // Render array of properties for the admin toolbar search JS autocomplete
-  // input text field.
-  $admin_toolbar_search_field = [
-    'admin_toolbar_search' => [
-      // Define a form element of type 'search' to get HTML5 features.
-      '#type' => 'search',
-      // Set field HTML attributes: ID, label, title, placeholder text and size.
-      '#id' => AdminToolbarSearchHtmlId::SearchInput->value,
-      '#title' => $search_field_title,
-      '#placeholder' => $search_field_placeholder,
-      '#attributes' => [
-        'title' => $search_field_title_attribute,
-      ],
-      // Default size of the search input field when displayed in the tray.
-      // The size is reduced when displayed directly in the toolbar.
-      '#size' => 60,
-    ],
-  ];
-
-  // Add the admin toolbar search as a toolbar item render array.
-  $items['admin_toolbar_search'] = [
-    '#type' => 'toolbar_item',
-    'tab' => [
-      // Render array of properties for the admin search tab menu link, when it
-      // is *not* displayed directly in the toolbar or as a fallback for mobile.
-      '#type' => 'link',
-      '#title' => $search_field_title,
-      // Since the search field is handled with JS, there is no link url for the
-      // tab, so a simple 'span' element could be used instead.
-      '#url' => Url::fromRoute('<nolink>'),
-      '#attributes' => [
-        'class' => [
-          // Ensures compatibility with Drupal core toolbar styles for the
-          // search tab magnifying glass icon.
-          'toolbar-icon',
-        ],
-      ],
-    ],
-    // Move the search tab to the end of the toolbar items, by default.
-    '#weight' => 110,
-    // Set the ID of the HTML element wrapping the toolbar item.
-    '#wrapper_attributes' => [
-      'id' => AdminToolbarSearchHtmlId::SearchTab->value,
-    ],
-    // Load the required JS library and settings by default.
-    '#attached' => [
-      'library' => [
-        'admin_toolbar_search/admin_toolbar_search',
-      ],
-      // Add settings to determine if extra links should be loaded via AJAX and
-      // if the selected links should be opened in a new tab.
-      'drupalSettings' => [
-        'adminToolbarSearch' => [
-          'loadExtraLinks' => $admin_toolbar_tools_enabled,
-          'openResultsInNewTab' => (bool) $admin_toolbar_search_settings->get('open_results_in_new_tab'),
-        ],
-      ],
-    ],
-    // Set the cache metadata for the administration search toolbar item.
-    '#cache' => $toolbar_search_item_cache,
-  ];
-
-  // Add the keyboard shortcut library if enabled ('enable_keyboard_shortcut').
-  if ($admin_toolbar_search_settings->get('enable_keyboard_shortcut')) {
-    $items['admin_toolbar_search']['#attached']['library'][] = 'admin_toolbar_search/admin_toolbar_search.keyboard_shortcut';
-
-    // Add the keyboard shortcut label to the search field placeholder and
-    // title attributes.
-    $search_keyboard_shortcut_label = t('Alt + a');
-    $admin_toolbar_search_field['admin_toolbar_search']['#placeholder'] .= ' (' . $search_keyboard_shortcut_label . ')';
-    $admin_toolbar_search_field['admin_toolbar_search']['#attributes']['title'] = t('Keyboard shortcut: @shortcut_label', [
-      '@shortcut_label' => $search_keyboard_shortcut_label,
-    ]);
-  }
-
-  // The search field is always displayed in a specific tray under the 'Search'
-  // tab menu item. This tab is hidden or shown with CSS styles depending on the
-  // toolbar width breakpoint and the 'display_menu_item' setting.
-  $items['admin_toolbar_search']['tray'] = $admin_toolbar_search_field;
-
-  // Add the autocomplete search field directly in the toolbar by default, as
-  // a toolbar item ('display_menu_item:false').
-  if (!$display_menu_item) {
-    // The search field is displayed directly in the Toolbar without a tray.
-    // The field has no HTML ID, only CSS classes, since some themes (Gin)
-    // render the toolbar items twice, which would duplicate the ID.
-    $admin_toolbar_search_toolbar_field = $admin_toolbar_search_field;
-    unset($admin_toolbar_search_toolbar_field['admin_toolbar_search']['#id']);
-    $items['admin_toolbar_search_field'] = [
-      '#type' => 'toolbar_item',
-      // Display the search field directly in the toolbar tab: Modify the search
-      // field properties for the toolbar item by merging the new options with
-      // the existing ones.
-      'tab' => NestedArray::mergeDeep($admin_toolbar_search_toolbar_field, [
-        'admin_toolbar_search' => [
-          // Reduce the size and hide the label of the search input field.
-          '#size' => 30,
-          '#title_display' => 'invisible',
-          '#attributes' => [
-            'class' => [
-              AdminToolbarSearchCssClass::SearchFieldInput->value,
-            ],
-            // The hidden label cannot be linked to the field without an ID.
-            'aria-label' => $search_field_title,
-          ],
-        ],
-      ]),
-      // The search field toolbar item should be right before the main search
-      // tab so it stays at the same position when the tab is hidden or shown.
-      '#weight' => $items['admin_toolbar_search']['#weight'] - 1,
-      // Set the CSS class of the HTML element wrapping the toolbar item.
-      '#wrapper_attributes' => [
-        'class' => [
-          AdminToolbarSearchCssClass::SearchFieldTab->value,
-        ],
-      ],
-      // Set the cache metadata for the admin search field toolbar item.
-      '#cache' => $toolbar_search_item_cache,
-    ];
-  }
-
-  return $items;
-
+  return \Drupal::service(AdminToolbarSearchHooks::class)->toolbar();
 }
diff --git a/admin_toolbar_search/admin_toolbar_search.services.yml b/admin_toolbar_search/admin_toolbar_search.services.yml
index 29b4e8a..fa14216 100644
--- a/admin_toolbar_search/admin_toolbar_search.services.yml
+++ b/admin_toolbar_search/admin_toolbar_search.services.yml
@@ -10,3 +10,7 @@ services:
   # as an endpoint of an AJAX request to load search links.
   admin_toolbar_search.search_links:
     class: Drupal\admin_toolbar_search\SearchLinks
+
+  Drupal\admin_toolbar_search\Hook\AdminToolbarSearchHooks:
+    class: Drupal\admin_toolbar_search\Hook\AdminToolbarSearchHooks
+    autowire: true
diff --git a/admin_toolbar_search/src/Hook/AdminToolbarSearchHooks.php b/admin_toolbar_search/src/Hook/AdminToolbarSearchHooks.php
new file mode 100644
index 0000000..86ec99d
--- /dev/null
+++ b/admin_toolbar_search/src/Hook/AdminToolbarSearchHooks.php
@@ -0,0 +1,200 @@
+<?php
+
+namespace Drupal\admin_toolbar_search\Hook;
+
+use Drupal\admin_toolbar_search\Enum\AdminToolbarSearchCssClass;
+use Drupal\Component\Utility\NestedArray;
+use Drupal\Core\Url;
+use Drupal\admin_toolbar_search\Enum\AdminToolbarSearchHtmlId;
+use Drupal\Core\Hook\Attribute\Hook;
+use Drupal\Core\StringTranslation\StringTranslationTrait;
+
+/**
+ * Hook implementations for admin_toolbar_search.
+ */
+class AdminToolbarSearchHooks {
+  use StringTranslationTrait;
+
+  /**
+   * Implements hook_help().
+   */
+  #[Hook('help')]
+  public function help($route_name) {
+    switch ($route_name) {
+      // Main user documentation page for the Admin Toolbar Search module.
+      case 'help.page.admin_toolbar_search':
+        $output = '';
+        $output .= '<h3>' . $this->t('About') . '</h3>';
+        $output .= '<p>' . $this->t('Type text to quickly search for menu links in the Admin Toolbar!<br>') . '</p>';
+        $output .= '<p>' . $this->t('The Admin Toolbar Search module adds an easy-to-use JS autocomplete filter of the links in the Administration menu.<br>It is very convenient for finding quickly an administration configuration page without knowing where its menu link could be in the Administration dropdown menu or the organization of the site.') . '</p>';
+        $output .= '<p>' . $this->t('Hold the Ctrl or Cmd key while selecting a search result to open the link in a new tab, or the Shift key to open it in a new window.') . '</p>';
+        return $output;
+    }
+  }
+
+  /**
+   * Implements hook_toolbar().
+   *
+   * Inject the admin toolbar search JS autocomplete text field in the Toolbar
+   * directly as a toolbar item or as a menu item tab with a tray
+   * ('display_menu_item'). Add the necessary CSS classes, HTML IDs and load
+   * required JS libraries and settings.
+   *
+   * The autocomplete search field is always loaded with a menu item tab and tray,
+   * but if the 'display_menu_item' setting is disabled, the search field is also
+   * added directly in the toolbar as a separate toolbar item.
+   * The default search tab is then hidden or displayed with CSS styles when the
+   * toolbar width is below '769px', to support mobile devices.
+   *
+   * In other words, support for smaller devices is not provided by the module,
+   * but by Drupal core.
+   *
+   * @see admin_toolbar_search/css/admin_toolbar_search.css
+   * @see admin_toolbar_search/js/admin_toolbar_search.js
+   */
+  #[Hook('toolbar')]
+  public function toolbar() {
+    // Load the admin toolbar search only if the user has the required permission.
+    if (!\Drupal::currentUser()->hasPermission('use admin toolbar search')) {
+      return [];
+    }
+    // Check if the Admin Toolbar Tools module is enabled to load extra links.
+    $admin_toolbar_tools_enabled = \Drupal::service('module_handler')->moduleExists('admin_toolbar_tools');
+    // Load the Admin Toolbar Search settings from the configuration.
+    $admin_toolbar_search_settings = \Drupal::config('admin_toolbar_search.settings');
+    // Get the 'display_menu_item' setting to determine if the search field is
+    // displayed directly in the toolbar or in a tray under a menu item tab.
+    $display_menu_item = $admin_toolbar_search_settings->get('display_menu_item');
+    // Admin Toolbar Search field default label, title and placeholder text.
+    $search_field_title = $this->t('Search');
+    $search_field_placeholder = $this->t('Search for menu links');
+    $search_field_title_attribute = $this->t('Type text to search for menu links in the admin toolbar.');
+    // Ensure the toolbar items are rebuilt when the user permissions or module's
+    // settings change and keep the render arrays cached.
+    $toolbar_search_item_cache = [
+      'contexts' => [
+        'user.permissions',
+      ],
+      'tags' => [
+        'config:admin_toolbar_search.settings',
+      ],
+    ];
+    // Render array of properties for the admin toolbar search JS autocomplete
+    // input text field.
+    $admin_toolbar_search_field = [
+      'admin_toolbar_search' => [
+              // Define a form element of type 'search' to get HTML5 features.
+        '#type' => 'search',
+              // Set field HTML attributes: ID, label, title, placeholder text and size.
+        '#id' => AdminToolbarSearchHtmlId::SearchInput->value,
+        '#title' => $search_field_title,
+        '#placeholder' => $search_field_placeholder,
+        '#attributes' => [
+          'title' => $search_field_title_attribute,
+        ],
+              // Default size of the search input field when displayed in the tray.
+              // The size is reduced when displayed directly in the toolbar.
+        '#size' => 60,
+      ],
+    ];
+    // Add the admin toolbar search as a toolbar item render array.
+    $items['admin_toolbar_search'] = [
+      '#type' => 'toolbar_item',
+      'tab' => [
+              // Render array of properties for the admin search tab menu link, when it
+              // is *not* displayed directly in the toolbar or as a fallback for mobile.
+        '#type' => 'link',
+        '#title' => $search_field_title,
+              // Since the search field is handled with JS, there is no link url for the
+              // tab, so a simple 'span' element could be used instead.
+        '#url' => Url::fromRoute('<nolink>'),
+        '#attributes' => [
+          'class' => [
+                      // Ensures compatibility with Drupal core toolbar styles for the
+                      // search tab magnifying glass icon.
+            'toolbar-icon',
+          ],
+        ],
+      ],
+          // Move the search tab to the end of the toolbar items, by default.
+      '#weight' => 110,
+          // Set the ID of the HTML element wrapping the toolbar item.
+      '#wrapper_attributes' => [
+        'id' => AdminToolbarSearchHtmlId::SearchTab->value,
+      ],
+          // Load the required JS library and settings by default.
+      '#attached' => [
+        'library' => [
+          'admin_toolbar_search/admin_toolbar_search',
+        ],
+              // Add settings to determine if extra links should be loaded via AJAX and
+              // if the selected links should be opened in a new tab.
+        'drupalSettings' => [
+          'adminToolbarSearch' => [
+            'loadExtraLinks' => $admin_toolbar_tools_enabled,
+            'openResultsInNewTab' => (bool) $admin_toolbar_search_settings->get('open_results_in_new_tab'),
+          ],
+        ],
+      ],
+          // Set the cache metadata for the administration search toolbar item.
+      '#cache' => $toolbar_search_item_cache,
+    ];
+    // Add the keyboard shortcut library if enabled ('enable_keyboard_shortcut').
+    if ($admin_toolbar_search_settings->get('enable_keyboard_shortcut')) {
+      $items['admin_toolbar_search']['#attached']['library'][] = 'admin_toolbar_search/admin_toolbar_search.keyboard_shortcut';
+      // Add the keyboard shortcut label to the search field placeholder and
+      // title attributes.
+      $search_keyboard_shortcut_label = $this->t('Alt + a');
+      $admin_toolbar_search_field['admin_toolbar_search']['#placeholder'] .= ' (' . $search_keyboard_shortcut_label . ')';
+      $admin_toolbar_search_field['admin_toolbar_search']['#attributes']['title'] = $this->t('Keyboard shortcut: @shortcut_label', [
+        '@shortcut_label' => $search_keyboard_shortcut_label,
+      ]);
+    }
+    // The search field is always displayed in a specific tray under the 'Search'
+    // tab menu item. This tab is hidden or shown with CSS styles depending on the
+    // toolbar width breakpoint and the 'display_menu_item' setting.
+    $items['admin_toolbar_search']['tray'] = $admin_toolbar_search_field;
+    // Add the autocomplete search field directly in the toolbar by default, as
+    // a toolbar item ('display_menu_item:false').
+    if (!$display_menu_item) {
+      // The search field is displayed directly in the Toolbar without a tray.
+      // The field has no HTML ID, only CSS classes, since some themes (Gin)
+      // render the toolbar items twice, which would duplicate the ID.
+      $admin_toolbar_search_toolbar_field = $admin_toolbar_search_field;
+      unset($admin_toolbar_search_toolbar_field['admin_toolbar_search']['#id']);
+      $items['admin_toolbar_search_field'] = [
+        '#type' => 'toolbar_item',
+            // Display the search field directly in the toolbar tab: Modify the search
+            // field properties for the toolbar item by merging the new options with
+            // the existing ones.
+        'tab' => NestedArray::mergeDeep($admin_toolbar_search_toolbar_field, [
+          'admin_toolbar_search' => [
+                    // Reduce the size and hide the label of the search input field.
+            '#size' => 30,
+            '#title_display' => 'invisible',
+            '#attributes' => [
+              'class' => [
+                AdminToolbarSearchCssClass::SearchFieldInput->value,
+              ],
+                        // The hidden label cannot be linked to the field without an ID.
+              'aria-label' => $search_field_title,
+            ],
+          ],
+        ]),
+            // The search field toolbar item should be right before the main search
+            // tab so it stays at the same position when the tab is hidden or shown.
+        '#weight' => $items['admin_toolbar_search']['#weight'] - 1,
+            // Set the CSS class of the HTML element wrapping the toolbar item.
+        '#wrapper_attributes' => [
+          'class' => [
+            AdminToolbarSearchCssClass::SearchFieldTab->value,
+          ],
+        ],
+            // Set the cache metadata for the admin search field toolbar item.
+        '#cache' => $toolbar_search_item_cache,
+      ];
+    }
+    return $items;
+  }
+
+}
diff --git a/admin_toolbar_search/tests/modules/admin_toolbar_search_test_no_search_tab/admin_toolbar_search_test_no_search_tab.module b/admin_toolbar_search/tests/modules/admin_toolbar_search_test_no_search_tab/admin_toolbar_search_test_no_search_tab.module
index afecbd7..b4dc563 100644
--- a/admin_toolbar_search/tests/modules/admin_toolbar_search_test_no_search_tab/admin_toolbar_search_test_no_search_tab.module
+++ b/admin_toolbar_search/tests/modules/admin_toolbar_search_test_no_search_tab/admin_toolbar_search_test_no_search_tab.module
@@ -1,5 +1,12 @@
 <?php
 
+/**
+ * @file
+ */
+
+use Drupal\Core\Hook\Attribute\LegacyHook;
+use Drupal\admin_toolbar_search_test_no_search_tab\Hook\AdminToolbarSearchTestNoSearchTabHooks;
+
 /**
  * @file
  * Test module removing the Admin Toolbar Search tab from the toolbar.
@@ -13,9 +20,7 @@
  * move them to the search field to keep the autocomplete and the keyboard
  * shortcut.
  */
+#[LegacyHook]
 function admin_toolbar_search_test_no_search_tab_toolbar_alter(&$items) {
-  if (isset($items['admin_toolbar_search'], $items['admin_toolbar_search_field'])) {
-    $items['admin_toolbar_search_field']['#attached'] = $items['admin_toolbar_search']['#attached'];
-    unset($items['admin_toolbar_search']);
-  }
+  \Drupal::service(AdminToolbarSearchTestNoSearchTabHooks::class)->toolbarAlter($items);
 }
diff --git a/admin_toolbar_search/tests/modules/admin_toolbar_search_test_no_search_tab/admin_toolbar_search_test_no_search_tab.services.yml b/admin_toolbar_search/tests/modules/admin_toolbar_search_test_no_search_tab/admin_toolbar_search_test_no_search_tab.services.yml
new file mode 100644
index 0000000..68b75d9
--- /dev/null
+++ b/admin_toolbar_search/tests/modules/admin_toolbar_search_test_no_search_tab/admin_toolbar_search_test_no_search_tab.services.yml
@@ -0,0 +1,5 @@
+
+services:
+  Drupal\admin_toolbar_search_test_no_search_tab\Hook\AdminToolbarSearchTestNoSearchTabHooks:
+    class: Drupal\admin_toolbar_search_test_no_search_tab\Hook\AdminToolbarSearchTestNoSearchTabHooks
+    autowire: true
diff --git a/admin_toolbar_search/tests/modules/admin_toolbar_search_test_no_search_tab/src/Hook/AdminToolbarSearchTestNoSearchTabHooks.php b/admin_toolbar_search/tests/modules/admin_toolbar_search_test_no_search_tab/src/Hook/AdminToolbarSearchTestNoSearchTabHooks.php
new file mode 100644
index 0000000..7069630
--- /dev/null
+++ b/admin_toolbar_search/tests/modules/admin_toolbar_search_test_no_search_tab/src/Hook/AdminToolbarSearchTestNoSearchTabHooks.php
@@ -0,0 +1,32 @@
+<?php
+
+namespace Drupal\admin_toolbar_search_test_no_search_tab\Hook;
+
+use Drupal\Core\Hook\Attribute\Hook;
+
+/**
+ * Hook implementations for admin_toolbar_search_test_no_search_tab.
+ */
+class AdminToolbarSearchTestNoSearchTabHooks {
+  /**
+   * @file
+   * Test module removing the Admin Toolbar Search tab from the toolbar.
+   */
+
+  /**
+   * Implements hook_toolbar_alter().
+   *
+   * Remove the search tab and keep the search field displayed directly in the
+   * toolbar. The JS libraries and settings are attached to the search tab, so
+   * move them to the search field to keep the autocomplete and the keyboard
+   * shortcut.
+   */
+  #[Hook('toolbar_alter')]
+  public function toolbarAlter(&$items) {
+    if (isset($items['admin_toolbar_search'], $items['admin_toolbar_search_field'])) {
+      $items['admin_toolbar_search_field']['#attached'] = $items['admin_toolbar_search']['#attached'];
+      unset($items['admin_toolbar_search']);
+    }
+  }
+
+}
diff --git a/admin_toolbar_search/tests/src/Functional/AdminToolbarSearchModuleConfigLinksTest.php b/admin_toolbar_search/tests/src/Functional/AdminToolbarSearchModuleConfigLinksTest.php
index efa074b..f6eec03 100644
--- a/admin_toolbar_search/tests/src/Functional/AdminToolbarSearchModuleConfigLinksTest.php
+++ b/admin_toolbar_search/tests/src/Functional/AdminToolbarSearchModuleConfigLinksTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_search\Functional;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\Core\Url;
 use Drupal\Tests\BrowserTestBase;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
@@ -21,6 +23,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @see \Drupal\admin_toolbar_search\SearchLinks::getLinks()
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_search')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarSearchModuleConfigLinksTest extends BrowserTestBase {
 
   /**
diff --git a/admin_toolbar_search/tests/src/Functional/AdminToolbarSearchSettingsFormTest.php b/admin_toolbar_search/tests/src/Functional/AdminToolbarSearchSettingsFormTest.php
index 8bed9fa..ebb1b4c 100644
--- a/admin_toolbar_search/tests/src/Functional/AdminToolbarSearchSettingsFormTest.php
+++ b/admin_toolbar_search/tests/src/Functional/AdminToolbarSearchSettingsFormTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_search\Functional;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\admin_toolbar_search\Enum\AdminToolbarSearchCssClass;
 use Drupal\admin_toolbar_search\Enum\AdminToolbarSearchHtmlId;
 use Drupal\Tests\BrowserTestBase;
@@ -16,6 +18,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_search
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_search')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarSearchSettingsFormTest extends BrowserTestBase {
 
   /**
diff --git a/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchEventsTest.php b/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchEventsTest.php
index 837f908..2148ae3 100644
--- a/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchEventsTest.php
+++ b/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchEventsTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_search\FunctionalJavascript;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
 use Drupal\admin_toolbar_search\Enum\AdminToolbarSearchCssClass;
 use Drupal\admin_toolbar_search\Enum\AdminToolbarSearchHtmlId;
@@ -23,6 +25,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_search
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_search')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarSearchEventsTest extends WebDriverTestBase {
 
   /**
diff --git a/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchLinkClickTest.php b/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchLinkClickTest.php
index 7756816..2220ab6 100644
--- a/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchLinkClickTest.php
+++ b/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchLinkClickTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_search\FunctionalJavascript;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\admin_toolbar_search\Enum\AdminToolbarSearchCssClass;
 use PHPUnit\Framework\Attributes\DataProvider;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
@@ -20,6 +22,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_search
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_search')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarSearchLinkClickTest extends AdminToolbarSearchTestBase {
 
   /**
diff --git a/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchNoResultsTest.php b/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchNoResultsTest.php
index 356e0d4..f5d8d71 100644
--- a/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchNoResultsTest.php
+++ b/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchNoResultsTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_search\FunctionalJavascript;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\admin_toolbar_search\Enum\AdminToolbarSearchCssClass;
 use Drupal\admin_toolbar_search\Enum\AdminToolbarSearchHtmlId;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
@@ -18,6 +20,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_search
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_search')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarSearchNoResultsTest extends AdminToolbarSearchTestBase {
 
   /**
diff --git a/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchTest.php b/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchTest.php
index adcb8af..bcc6c37 100644
--- a/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchTest.php
+++ b/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_search\FunctionalJavascript;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
 
 /**
@@ -13,6 +15,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_search
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_search')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarSearchTest extends AdminToolbarSearchTestBase {
 
   /**
diff --git a/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchTestBase.php b/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchTestBase.php
index c551c09..de6e6ad 100644
--- a/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchTestBase.php
+++ b/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchTestBase.php
@@ -4,6 +4,7 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_search\FunctionalJavascript;
 
+use PHPUnit\Framework\Attributes\Group;
 use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
 use Drupal\Tests\admin_toolbar\Traits\AdminToolbarHelperTestTrait;
 use Drupal\admin_toolbar_search\Enum\AdminToolbarSearchCssClass;
@@ -17,6 +18,8 @@ use Drupal\admin_toolbar_search\Enum\AdminToolbarSearchHtmlId;
  * @group admin_toolbar
  * @group admin_toolbar_search
  */
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_search')]
 abstract class AdminToolbarSearchTestBase extends WebDriverTestBase {
 
   use AdminToolbarHelperTestTrait;
diff --git a/admin_toolbar_search/tests/src/Kernel/AdminToolbarSearchAutowiringTest.php b/admin_toolbar_search/tests/src/Kernel/AdminToolbarSearchAutowiringTest.php
index 1b49946..2ddcc5c 100644
--- a/admin_toolbar_search/tests/src/Kernel/AdminToolbarSearchAutowiringTest.php
+++ b/admin_toolbar_search/tests/src/Kernel/AdminToolbarSearchAutowiringTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_search\Kernel;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\admin_toolbar_search\Controller\AdminToolbarSearchController;
 use Drupal\KernelTests\KernelTestBase;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
@@ -15,6 +17,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_search
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_search')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarSearchAutowiringTest extends KernelTestBase {
 
   /**
diff --git a/admin_toolbar_search/tests/src/Kernel/AdminToolbarSearchConfigSchemaTest.php b/admin_toolbar_search/tests/src/Kernel/AdminToolbarSearchConfigSchemaTest.php
index aa5557e..6151fcf 100644
--- a/admin_toolbar_search/tests/src/Kernel/AdminToolbarSearchConfigSchemaTest.php
+++ b/admin_toolbar_search/tests/src/Kernel/AdminToolbarSearchConfigSchemaTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_search\Kernel;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\Tests\admin_toolbar\Kernel\AdminToolbarConfigSchemaTestBase;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
 
@@ -23,6 +25,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_search
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_search')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarSearchConfigSchemaTest extends AdminToolbarConfigSchemaTestBase {
 
   /**
diff --git a/admin_toolbar_search/tests/src/Kernel/AdminToolbarSearchTranslatedLabelsTest.php b/admin_toolbar_search/tests/src/Kernel/AdminToolbarSearchTranslatedLabelsTest.php
index 0d8cee1..1cccea3 100644
--- a/admin_toolbar_search/tests/src/Kernel/AdminToolbarSearchTranslatedLabelsTest.php
+++ b/admin_toolbar_search/tests/src/Kernel/AdminToolbarSearchTranslatedLabelsTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_search\Kernel;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\KernelTests\KernelTestBase;
 use Drupal\language\Entity\ConfigurableLanguage;
 use Drupal\node\Entity\NodeType;
@@ -18,6 +20,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_search
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_search')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarSearchTranslatedLabelsTest extends KernelTestBase {
 
   use UserCreationTrait;
diff --git a/admin_toolbar_tools/admin_toolbar_tools.install b/admin_toolbar_tools/admin_toolbar_tools.install
index 946682c..fc905f3 100644
--- a/admin_toolbar_tools/admin_toolbar_tools.install
+++ b/admin_toolbar_tools/admin_toolbar_tools.install
@@ -19,8 +19,7 @@ function admin_toolbar_tools_update_8001() {
 function admin_toolbar_tools_update_8201() {
   \Drupal::service('config.factory')
     ->getEditable('admin_toolbar_tools.settings')
-    ->set('max_bundle_number', 20)
-    ->save(TRUE);
+    ->set('max_bundle_number', 20)->save();
 }
 
 /**
@@ -29,8 +28,7 @@ function admin_toolbar_tools_update_8201() {
 function admin_toolbar_tools_update_8202() {
   \Drupal::service('config.factory')
     ->getEditable('admin_toolbar_tools.settings')
-    ->set('hoverintent_functionality', TRUE)
-    ->save(TRUE);
+    ->set('hoverintent_functionality', TRUE)->save();
 }
 
 /**
diff --git a/admin_toolbar_tools/admin_toolbar_tools.module b/admin_toolbar_tools/admin_toolbar_tools.module
index 24dd1a5..8fa75e3 100644
--- a/admin_toolbar_tools/admin_toolbar_tools.module
+++ b/admin_toolbar_tools/admin_toolbar_tools.module
@@ -7,46 +7,25 @@
 
 declare(strict_types=1);
 
+use Drupal\Core\Hook\Attribute\LegacyHook;
+use Drupal\admin_toolbar_tools\Hook\AdminToolbarToolsHooks;
 use Drupal\Core\Entity\EntityInterface;
 use Drupal\Core\Routing\RouteMatchInterface;
-use Drupal\Core\Url;
 
 /**
  * Implements hook_toolbar().
  */
+#[LegacyHook]
 function admin_toolbar_tools_toolbar() {
-  $items = [];
-  $items['admin_toolbar_tools'] = [
-    '#type' => 'toolbar_item',
-    'tab' => [
-      '#type' => 'link',
-      '#attributes' => [
-        'class' => ['toolbar-icon', 'toolbar-icon-admin-toolbar-tools-help'],
-      ],
-    ],
-    '#attached' => ['library' => ['admin_toolbar_tools/admin_toolbar_tools']],
-  ];
-
-  // Toolbar item for primary local tasks.
-  $items['admin_toolbar_local_tasks'] = \Drupal::service('admin_toolbar_tools.helper')->buildLocalTasksToolbar();
-
-  return $items;
+  return \Drupal::service(AdminToolbarToolsHooks::class)->toolbar();
 }
 
 /**
  * Implements hook_help().
  */
+#[LegacyHook]
 function admin_toolbar_tools_help($route_name, RouteMatchInterface $route_match) {
-  switch ($route_name) {
-    case 'help.page.admin_toolbar_tools':
-      $output = '';
-      $output .= '<p>';
-      $output .= t('The Admin Toolbar Extra Tools module comes packaged with the <a href=":admin-toolbar">Admin Toolbar</a> module and adds functionality to it. The additional functionality is accessed through extra links on the main administration Toolbar. Some links to Admin Toolbar Extra Tools administration pages are located at the bottom of this page.</a>', [':admin-toolbar' => Url::fromRoute('help.page', ['name' => 'admin_toolbar'])->toString()]);
-      $output .= '</p>';
-      $output .= '<h3>' . t('Uses') . '</h3>';
-      $output .= '<p>' . t('To use Admin Toolbar Extra Tools just install it like any other module. There is no other configuration required.') . '</p>';
-      return $output;
-  }
+  return \Drupal::service(AdminToolbarToolsHooks::class)->help($route_name, $route_match);
 }
 
 /**
@@ -70,30 +49,33 @@ function _admin_toolbar_tools_request_rebuild(EntityInterface $entity): void {
 /**
  * Implements hook_entity_insert().
  */
+#[LegacyHook]
 function admin_toolbar_tools_entity_insert(EntityInterface $entity) {
-  _admin_toolbar_tools_request_rebuild($entity);
+  \Drupal::service(AdminToolbarToolsHooks::class)->entityInsert($entity);
 }
 
 /**
  * Implements hook_entity_update().
  */
+#[LegacyHook]
 function admin_toolbar_tools_entity_update(EntityInterface $entity) {
-  _admin_toolbar_tools_request_rebuild($entity);
+  \Drupal::service(AdminToolbarToolsHooks::class)->entityUpdate($entity);
 }
 
 /**
  * Implements hook_entity_delete().
  */
+#[LegacyHook]
 function admin_toolbar_tools_entity_delete(EntityInterface $entity) {
-  _admin_toolbar_tools_request_rebuild($entity);
+  \Drupal::service(AdminToolbarToolsHooks::class)->entityDelete($entity);
 }
 
 /**
  * Implements hook_form_FORM_ID_alter().
  */
+#[LegacyHook]
 function admin_toolbar_tools_form_project_browser_settings_alter(&$form) {
-  // Project browser settings form: Add a submit handler to rebuild menu items.
-  $form['#submit'][] = 'admin_toolbar_tools_project_browser_settings_submit';
+  \Drupal::service(AdminToolbarToolsHooks::class)->formProjectBrowserSettingsAlter($form);
 }
 
 /**
diff --git a/admin_toolbar_tools/admin_toolbar_tools.services.yml b/admin_toolbar_tools/admin_toolbar_tools.services.yml
index 2d20228..a2614dc 100644
--- a/admin_toolbar_tools/admin_toolbar_tools.services.yml
+++ b/admin_toolbar_tools/admin_toolbar_tools.services.yml
@@ -16,3 +16,7 @@ services:
       # 'DestructableInterface': required to call 'destruct()' at the end of the
       # request, for example when no response is sent (CLI).
       - { name: needs_destruction }
+
+  Drupal\admin_toolbar_tools\Hook\AdminToolbarToolsHooks:
+    class: Drupal\admin_toolbar_tools\Hook\AdminToolbarToolsHooks
+    autowire: true
diff --git a/admin_toolbar_tools/src/Hook/AdminToolbarToolsHooks.php b/admin_toolbar_tools/src/Hook/AdminToolbarToolsHooks.php
new file mode 100644
index 0000000..337c379
--- /dev/null
+++ b/admin_toolbar_tools/src/Hook/AdminToolbarToolsHooks.php
@@ -0,0 +1,99 @@
+<?php
+
+namespace Drupal\admin_toolbar_tools\Hook;
+
+use Drupal\Core\Entity\EntityInterface;
+use Drupal\Core\Url;
+use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\Core\Hook\Attribute\Hook;
+use Drupal\Core\StringTranslation\StringTranslationTrait;
+
+/**
+ * Hook implementations for admin_toolbar_tools.
+ */
+class AdminToolbarToolsHooks {
+  use StringTranslationTrait;
+
+  /**
+   * Implements hook_toolbar().
+   */
+  #[Hook('toolbar')]
+  public function toolbar() {
+    $items = [];
+    $items['admin_toolbar_tools'] = [
+      '#type' => 'toolbar_item',
+      'tab' => [
+        '#type' => 'link',
+        '#attributes' => [
+          'class' => [
+            'toolbar-icon',
+            'toolbar-icon-admin-toolbar-tools-help',
+          ],
+        ],
+      ],
+      '#attached' => [
+        'library' => [
+          'admin_toolbar_tools/admin_toolbar_tools',
+        ],
+      ],
+    ];
+    // Toolbar item for primary local tasks.
+    $items['admin_toolbar_local_tasks'] = \Drupal::service('admin_toolbar_tools.helper')->buildLocalTasksToolbar();
+    return $items;
+  }
+
+  /**
+   * Implements hook_help().
+   */
+  #[Hook('help')]
+  public function help($route_name, RouteMatchInterface $route_match) {
+    switch ($route_name) {
+      case 'help.page.admin_toolbar_tools':
+        $output = '';
+        $output .= '<p>';
+        $output .= $this->t('The Admin Toolbar Extra Tools module comes packaged with the <a href=":admin-toolbar">Admin Toolbar</a> module and adds functionality to it. The additional functionality is accessed through extra links on the main administration Toolbar. Some links to Admin Toolbar Extra Tools administration pages are located at the bottom of this page.</a>', [
+          ':admin-toolbar' => Url::fromRoute('help.page', [
+            'name' => 'admin_toolbar',
+          ])->toString(),
+        ]);
+        $output .= '</p>';
+        $output .= '<h3>' . $this->t('Uses') . '</h3>';
+        $output .= '<p>' . $this->t('To use Admin Toolbar Extra Tools just install it like any other module. There is no other configuration required.') . '</p>';
+        return $output;
+    }
+  }
+
+  /**
+   * Implements hook_entity_insert().
+   */
+  #[Hook('entity_insert')]
+  public function entityInsert(EntityInterface $entity) {
+    _admin_toolbar_tools_request_rebuild($entity);
+  }
+
+  /**
+   * Implements hook_entity_update().
+   */
+  #[Hook('entity_update')]
+  public function entityUpdate(EntityInterface $entity) {
+    _admin_toolbar_tools_request_rebuild($entity);
+  }
+
+  /**
+   * Implements hook_entity_delete().
+   */
+  #[Hook('entity_delete')]
+  public function entityDelete(EntityInterface $entity) {
+    _admin_toolbar_tools_request_rebuild($entity);
+  }
+
+  /**
+   * Implements hook_form_FORM_ID_alter().
+   */
+  #[Hook('form_project_browser_settings_alter')]
+  public function formProjectBrowserSettingsAlter(&$form) {
+    // Project browser settings form: Add a submit handler to rebuild menu items.
+    $form['#submit'][] = 'admin_toolbar_tools_project_browser_settings_submit';
+  }
+
+}
diff --git a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsAutomaticUpdatesTest.php b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsAutomaticUpdatesTest.php
index efcb232..9b0fe18 100644
--- a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsAutomaticUpdatesTest.php
+++ b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsAutomaticUpdatesTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_tools\Functional;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\Tests\admin_toolbar\Traits\AdminToolbarHelperTestTrait;
 use Drupal\Tests\BrowserTestBase;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
@@ -20,6 +22,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_tools
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_tools')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarToolsAutomaticUpdatesTest extends BrowserTestBase {
 
   use AdminToolbarHelperTestTrait;
diff --git a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsExtraLinksCustomTest.php b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsExtraLinksCustomTest.php
index c6defab..e6242aa 100644
--- a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsExtraLinksCustomTest.php
+++ b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsExtraLinksCustomTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_tools\Functional;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\Tests\BrowserTestBase;
 use Drupal\Tests\admin_toolbar\Traits\AdminToolbarHelperTestTrait;
 use Drupal\Tests\admin_toolbar_tools\Enum\AdminToolbarToolsCssClass;
@@ -23,6 +25,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_tools
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_tools')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarToolsExtraLinksCustomTest extends BrowserTestBase {
 
   use AdminToolbarHelperTestTrait;
diff --git a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsExtraLinksTest.php b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsExtraLinksTest.php
index e53c193..6eb913a 100644
--- a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsExtraLinksTest.php
+++ b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsExtraLinksTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_tools\Functional;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\Tests\BrowserTestBase;
 use Drupal\Tests\admin_toolbar\Traits\AdminToolbarHelperTestTrait;
 use Drupal\Tests\admin_toolbar_tools\Enum\AdminToolbarToolsEntityBundleOperation;
@@ -37,6 +39,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_tools
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_tools')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarToolsExtraLinksTest extends BrowserTestBase {
 
   use AdminToolbarHelperTestTrait;
diff --git a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsModuleLinksTranslationTest.php b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsModuleLinksTranslationTest.php
index 739cd5e..88a5bcc 100644
--- a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsModuleLinksTranslationTest.php
+++ b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsModuleLinksTranslationTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_tools\Functional;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\language\Entity\ConfigurableLanguage;
 use Drupal\Tests\admin_toolbar\Traits\AdminToolbarHelperTestTrait;
 use Drupal\Tests\BrowserTestBase;
@@ -22,6 +24,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_tools
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_tools')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarToolsModuleLinksTranslationTest extends BrowserTestBase {
 
   use AdminToolbarHelperTestTrait;
diff --git a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsProjectBrowserTest.php b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsProjectBrowserTest.php
index cc1a153..c4dc3f9 100644
--- a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsProjectBrowserTest.php
+++ b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsProjectBrowserTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_tools\Functional;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\Tests\admin_toolbar\Traits\AdminToolbarHelperTestTrait;
 use Drupal\Tests\BrowserTestBase;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
@@ -21,6 +23,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_tools
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_tools')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarToolsProjectBrowserTest extends BrowserTestBase {
 
   use AdminToolbarHelperTestTrait;
diff --git a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsSettingsFormTest.php b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsSettingsFormTest.php
index 90ebd13..fe081a8 100644
--- a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsSettingsFormTest.php
+++ b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsSettingsFormTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_tools\Functional;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\Tests\admin_toolbar\Traits\AdminToolbarHelperTestTrait;
 use Drupal\Tests\BrowserTestBase;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
@@ -17,6 +19,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @see \Drupal\admin_toolbar_tools\Form\AdminToolbarToolsSettingsForm
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_tools')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarToolsSettingsFormTest extends BrowserTestBase {
 
   use AdminToolbarHelperTestTrait;
diff --git a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsTest.php b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsTest.php
index 7561e87..ed6ac26 100644
--- a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsTest.php
+++ b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_tools\Functional;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\Tests\admin_toolbar\Traits\AdminToolbarHelperTestTrait;
 use Drupal\Tests\BrowserTestBase;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
@@ -21,6 +23,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @see \Drupal\admin_toolbar_tools\Form\AdminToolbarToolsSettingsForm
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_tools')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarToolsTest extends BrowserTestBase {
 
   use AdminToolbarHelperTestTrait;
diff --git a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsToolbarControllerTest.php b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsToolbarControllerTest.php
index 47d3a13..bddac93 100644
--- a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsToolbarControllerTest.php
+++ b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsToolbarControllerTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_tools\Functional;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\Tests\BrowserTestBase;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
 
@@ -15,6 +17,8 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @see \Drupal\admin_toolbar_tools\Controller\ToolbarController
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarToolsToolbarControllerTest extends BrowserTestBase {
 
   /**
diff --git a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsViewsTranslationTest.php b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsViewsTranslationTest.php
index e9468e2..bef19e1 100644
--- a/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsViewsTranslationTest.php
+++ b/admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsViewsTranslationTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_tools\Functional;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\language\Entity\ConfigurableLanguage;
 use Drupal\Tests\admin_toolbar\Traits\AdminToolbarHelperTestTrait;
 use Drupal\Tests\admin_toolbar_tools\Enum\AdminToolbarToolsCssClass;
@@ -18,6 +20,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_tools
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_tools')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarToolsViewsTranslationTest extends BrowserTestBase {
 
   use AdminToolbarHelperTestTrait;
diff --git a/admin_toolbar_tools/tests/src/FunctionalJavascript/AdminToolbarToolsSearchTest.php b/admin_toolbar_tools/tests/src/FunctionalJavascript/AdminToolbarToolsSearchTest.php
index 1986810..537307a 100644
--- a/admin_toolbar_tools/tests/src/FunctionalJavascript/AdminToolbarToolsSearchTest.php
+++ b/admin_toolbar_tools/tests/src/FunctionalJavascript/AdminToolbarToolsSearchTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_tools\FunctionalJavascript;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\Tests\admin_toolbar_search\FunctionalJavascript\AdminToolbarSearchTestBase;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
 
@@ -16,6 +18,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @see admin_toolbar_search/js/admin_toolbar_search.js
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_tools')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarToolsSearchTest extends AdminToolbarSearchTestBase {
 
   /**
diff --git a/admin_toolbar_tools/tests/src/Kernel/AdminToolbarToolsAutowiringTest.php b/admin_toolbar_tools/tests/src/Kernel/AdminToolbarToolsAutowiringTest.php
index 93f9c01..d0f8379 100644
--- a/admin_toolbar_tools/tests/src/Kernel/AdminToolbarToolsAutowiringTest.php
+++ b/admin_toolbar_tools/tests/src/Kernel/AdminToolbarToolsAutowiringTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_tools\Kernel;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\admin_toolbar_tools\Controller\ToolbarController;
 use Drupal\KernelTests\KernelTestBase;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
@@ -15,6 +17,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_tools
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_tools')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarToolsAutowiringTest extends KernelTestBase {
 
   /**
diff --git a/admin_toolbar_tools/tests/src/Kernel/AdminToolbarToolsConfigSchemaTest.php b/admin_toolbar_tools/tests/src/Kernel/AdminToolbarToolsConfigSchemaTest.php
index ca0752d..7cae0eb 100644
--- a/admin_toolbar_tools/tests/src/Kernel/AdminToolbarToolsConfigSchemaTest.php
+++ b/admin_toolbar_tools/tests/src/Kernel/AdminToolbarToolsConfigSchemaTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_tools\Kernel;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\Tests\admin_toolbar\Kernel\AdminToolbarConfigSchemaTestBase;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
 
@@ -24,6 +26,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_tools
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_tools')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarToolsConfigSchemaTest extends AdminToolbarConfigSchemaTestBase {
 
   /**
diff --git a/admin_toolbar_tools/tests/src/Kernel/AdminToolbarToolsFrontLinkTest.php b/admin_toolbar_tools/tests/src/Kernel/AdminToolbarToolsFrontLinkTest.php
index 4205e59..095be27 100644
--- a/admin_toolbar_tools/tests/src/Kernel/AdminToolbarToolsFrontLinkTest.php
+++ b/admin_toolbar_tools/tests/src/Kernel/AdminToolbarToolsFrontLinkTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_tools\Kernel;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\KernelTests\KernelTestBase;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
 use Symfony\Component\HttpFoundation\InputBag;
@@ -25,6 +27,9 @@ use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;
  * @group admin_toolbar_tools
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_tools')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarToolsFrontLinkTest extends KernelTestBase {
 
   /**
diff --git a/admin_toolbar_tools/tests/src/Kernel/MenuLinkRebuildManagerIntegrationTest.php b/admin_toolbar_tools/tests/src/Kernel/MenuLinkRebuildManagerIntegrationTest.php
index 5cbc830..e1bb1bd 100644
--- a/admin_toolbar_tools/tests/src/Kernel/MenuLinkRebuildManagerIntegrationTest.php
+++ b/admin_toolbar_tools/tests/src/Kernel/MenuLinkRebuildManagerIntegrationTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_tools\Kernel;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\KernelTests\KernelTestBase;
 use Drupal\user\Entity\Role;
 use Drupal\user\Entity\User;
@@ -29,6 +31,9 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_tools
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_tools')]
+#[RunTestsInSeparateProcesses]
 class MenuLinkRebuildManagerIntegrationTest extends KernelTestBase {
 
   /**
diff --git a/admin_toolbar_tools/tests/src/Unit/MenuLinkRebuildManagerTest.php b/admin_toolbar_tools/tests/src/Unit/MenuLinkRebuildManagerTest.php
index 4d400af..f0607fd 100644
--- a/admin_toolbar_tools/tests/src/Unit/MenuLinkRebuildManagerTest.php
+++ b/admin_toolbar_tools/tests/src/Unit/MenuLinkRebuildManagerTest.php
@@ -4,6 +4,7 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_tools\Unit;
 
+use PHPUnit\Framework\Attributes\Group;
 use Drupal\Core\Menu\MenuLinkManagerInterface;
 use Drupal\Tests\UnitTestCase;
 use Drupal\admin_toolbar_tools\MenuLinkRebuildManager;
@@ -23,6 +24,8 @@ use Symfony\Component\HttpKernel\KernelEvents;
  * @group admin_toolbar_tools
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_tools')]
 class MenuLinkRebuildManagerTest extends UnitTestCase {
 
   /**
diff --git a/admin_toolbar_tools/tests/src/Unit/Plugin/Derivative/ExtraLinksTest.php b/admin_toolbar_tools/tests/src/Unit/Plugin/Derivative/ExtraLinksTest.php
index 9b3921d..3b36831 100644
--- a/admin_toolbar_tools/tests/src/Unit/Plugin/Derivative/ExtraLinksTest.php
+++ b/admin_toolbar_tools/tests/src/Unit/Plugin/Derivative/ExtraLinksTest.php
@@ -4,6 +4,7 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar_tools\Unit\Plugin\Derivative;
 
+use PHPUnit\Framework\Attributes\Group;
 use Drupal\Core\Config\ConfigFactoryInterface;
 use Drupal\Core\Config\ImmutableConfig;
 use Drupal\Core\Entity\EntityStorageInterface;
@@ -25,6 +26,8 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar_tools
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[Group('admin_toolbar_tools')]
 class ExtraLinksTest extends UnitTestCase {
 
   /**
diff --git a/src/Hook/AdminToolbarHooks.php b/src/Hook/AdminToolbarHooks.php
new file mode 100644
index 0000000..69f1ac2
--- /dev/null
+++ b/src/Hook/AdminToolbarHooks.php
@@ -0,0 +1,86 @@
+<?php
+
+namespace Drupal\admin_toolbar\Hook;
+
+use Drupal\admin_toolbar\Enum\AdminToolbarStickyBehavior;
+use Drupal\admin_toolbar\Render\Element\AdminToolbar;
+use Drupal\Core\Url;
+use Drupal\Core\Hook\Attribute\Hook;
+use Drupal\Core\StringTranslation\StringTranslationTrait;
+
+/**
+ * Hook implementations for admin_toolbar.
+ */
+class AdminToolbarHooks {
+  use StringTranslationTrait;
+
+  /**
+   * Implements hook_help().
+   */
+  #[Hook('help')]
+  public function help($route_name) {
+    switch ($route_name) {
+      case 'help.page.admin_toolbar':
+        $variables = [
+          ':toolbar' => Url::fromRoute('help.page', [
+            'name' => 'toolbar',
+          ])->toString(),
+          ':automated_cron' => \Drupal::moduleHandler()->moduleExists('automated_cron') ? Url::fromRoute('help.page', [
+            'name' => 'automated_cron',
+          ])->toString() : '#',
+        ];
+        $output = '';
+        $output .= '<h3>' . $this->t('About') . '</h3>';
+        $output .= '<p>' . $this->t('The Admin Toolbar module enhances the <a href=":toolbar">Toolbar</a> module by providing fast access to all the administrative links at the top of your site. Admin Toolbar remains a very "lightweight" module by closely integrating with all Toolbar functionality. It can be used in conjunction with all the sub modules included on Admin Toolbar, for quick access to system commands such as Flush all caches, <a href=":automated_cron">Run cron</a>, Run Updates, etc.', $variables) . '</p>';
+        $output .= '<h3>' . $this->t('Uses') . '</h3>';
+        $output .= '<p>' . $this->t('The Admin Toolbar greatly improves the user experience for those who regularly interact with the site Toolbar by providing fast, full access to all links in the site Toolbar without having to click to get there.') . '</p>';
+        return $output;
+    }
+  }
+
+  /**
+   * Implements hook_toolbar_alter().
+   */
+  #[Hook('toolbar_alter')]
+  public function toolbarAlter(&$items) {
+    $items['administration']['tray']['toolbar_administration']['#pre_render'] = [
+      [
+        AdminToolbar::class,
+        'preRenderTray',
+      ],
+    ];
+    $admin_toolbar_config = \Drupal::config('admin_toolbar.settings');
+    $items['administration']['#attached']['library'][] = 'admin_toolbar/toolbar.tree';
+    // Add sticky behavior libraries based on the configuration.
+    $sticky_behavior = AdminToolbarStickyBehavior::tryFrom((string) $admin_toolbar_config->get('sticky_behavior')) ?? AdminToolbarStickyBehavior::Enabled;
+    switch ($sticky_behavior) {
+      case AdminToolbarStickyBehavior::Disabled:
+        $items['administration']['#attached']['library'][] = 'admin_toolbar/toolbar.disable_sticky';
+        break;
+
+      case AdminToolbarStickyBehavior::HideOnScrollDown:
+        $items['administration']['#attached']['library'][] = 'admin_toolbar/toolbar.sticky_behavior';
+        break;
+
+      default:
+        break;
+    }
+    // Add the hoverIntent behavior library if enabled.
+    $hoverintent_behavior = $admin_toolbar_config->get('hoverintent_behavior');
+    if (!empty($hoverintent_behavior['enabled'])) {
+      // Use the hoverIntent plugin library.
+      $items['administration']['#attached']['library'][] = 'admin_toolbar/toolbar.tree.hoverintent';
+      // Add the configured hoverIntent settings values to the JS of the toolbar.
+      $items['administration']['#attached']['drupalSettings']['hoverIntentTimeout'] = $hoverintent_behavior['timeout'];
+    }
+    else {
+      // Use default Admin Toolbar hover library.
+      $items['administration']['#attached']['library'][] = 'admin_toolbar/toolbar.tree.hover';
+    }
+    // Add the toggle toolbar keyboard shortcut library if enabled.
+    if ($admin_toolbar_config->get('enable_toggle_shortcut')) {
+      $items['administration']['#attached']['library'][] = 'admin_toolbar/toolbar.toggle_shortcut';
+    }
+  }
+
+}
diff --git a/tests/src/Functional/AdminToolbarAdminMenuTest.php b/tests/src/Functional/AdminToolbarAdminMenuTest.php
index 65940b7..3e4836c 100644
--- a/tests/src/Functional/AdminToolbarAdminMenuTest.php
+++ b/tests/src/Functional/AdminToolbarAdminMenuTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar\Functional;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\Tests\toolbar\Functional\ToolbarAdminMenuTest;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
 
@@ -13,6 +15,8 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarAdminMenuTest extends ToolbarAdminMenuTest {
 
   /**
diff --git a/tests/src/Functional/AdminToolbarSettingsFormTest.php b/tests/src/Functional/AdminToolbarSettingsFormTest.php
index b322128..9ccc48a 100644
--- a/tests/src/Functional/AdminToolbarSettingsFormTest.php
+++ b/tests/src/Functional/AdminToolbarSettingsFormTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar\Functional;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\admin_toolbar\Enum\AdminToolbarStickyBehavior;
 use Drupal\Tests\BrowserTestBase;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
@@ -14,6 +16,8 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarSettingsFormTest extends BrowserTestBase {
 
   /**
diff --git a/tests/src/Kernel/AdminToolbarConfigSchemaTest.php b/tests/src/Kernel/AdminToolbarConfigSchemaTest.php
index 465bd7a..158d6c3 100644
--- a/tests/src/Kernel/AdminToolbarConfigSchemaTest.php
+++ b/tests/src/Kernel/AdminToolbarConfigSchemaTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar\Kernel;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
 
 /**
@@ -22,6 +24,8 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarConfigSchemaTest extends AdminToolbarConfigSchemaTestBase {
 
   /**
diff --git a/tests/src/Kernel/AdminToolbarConfigSchemaTestBase.php b/tests/src/Kernel/AdminToolbarConfigSchemaTestBase.php
index 5cc7b6a..264ee69 100644
--- a/tests/src/Kernel/AdminToolbarConfigSchemaTestBase.php
+++ b/tests/src/Kernel/AdminToolbarConfigSchemaTestBase.php
@@ -4,6 +4,7 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar\Kernel;
 
+use PHPUnit\Framework\Attributes\Group;
 use Drupal\Core\Config\Schema\SchemaCheckTrait;
 use Drupal\KernelTests\KernelTestBase;
 use PHPUnit\Framework\Attributes\DataProvider;
@@ -20,6 +21,7 @@ use PHPUnit\Framework\Attributes\DataProvider;
  *
  * @group admin_toolbar
  */
+#[Group('admin_toolbar')]
 abstract class AdminToolbarConfigSchemaTestBase extends KernelTestBase {
 
   use SchemaCheckTrait;
diff --git a/tests/src/Kernel/AdminToolbarLinksAccessFilterUninstallTest.php b/tests/src/Kernel/AdminToolbarLinksAccessFilterUninstallTest.php
index 37fbf2d..91fc3ca 100644
--- a/tests/src/Kernel/AdminToolbarLinksAccessFilterUninstallTest.php
+++ b/tests/src/Kernel/AdminToolbarLinksAccessFilterUninstallTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar\Kernel;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\KernelTests\KernelTestBase;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
 
@@ -16,6 +18,8 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarLinksAccessFilterUninstallTest extends KernelTestBase {
 
   /**
diff --git a/tests/src/Kernel/AdminToolbarUpdateHooksTest.php b/tests/src/Kernel/AdminToolbarUpdateHooksTest.php
index 61b57ec..85b9683 100644
--- a/tests/src/Kernel/AdminToolbarUpdateHooksTest.php
+++ b/tests/src/Kernel/AdminToolbarUpdateHooksTest.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\admin_toolbar\Kernel;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\KernelTests\KernelTestBase;
 use PHPUnit\Framework\Attributes\IgnoreDeprecations;
 
@@ -13,6 +15,8 @@ use PHPUnit\Framework\Attributes\IgnoreDeprecations;
  * @group admin_toolbar
  */
 #[IgnoreDeprecations]
+#[Group('admin_toolbar')]
+#[RunTestsInSeparateProcesses]
 class AdminToolbarUpdateHooksTest extends KernelTestBase {
 
   /**
@@ -48,7 +52,7 @@ class AdminToolbarUpdateHooksTest extends KernelTestBase {
     $this->assertSame('disabled', $this->config('admin_toolbar.settings')->get('sticky_behavior'));
 
     // The default value is set when the setting does not exist.
-    $config->clear('sticky_behavior')->save(TRUE);
+    $config->clear('sticky_behavior')->save();
     $this->assertNull($this->config('admin_toolbar.settings')->get('sticky_behavior'));
     admin_toolbar_update_8007();
     $this->assertSame('enabled', $this->config('admin_toolbar.settings')->get('sticky_behavior'));
