summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/help/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/help/src')
-rw-r--r--core/modules/help/src/Hook/HelpThemeHooks.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/core/modules/help/src/Hook/HelpThemeHooks.php b/core/modules/help/src/Hook/HelpThemeHooks.php
new file mode 100644
index 00000000000..431c7d089d2
--- /dev/null
+++ b/core/modules/help/src/Hook/HelpThemeHooks.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\help\Hook;
+
+use Drupal\Core\Hook\Attribute\Hook;
+
+/**
+ * Hook implementations for help.
+ */
+class HelpThemeHooks {
+ /**
+ * @file
+ */
+
+ /**
+ * Implements hook_preprocess_HOOK() for block templates.
+ */
+ #[Hook('preprocess_block')]
+ public function preprocessBlock(&$variables): void {
+ if ($variables['plugin_id'] == 'help_block') {
+ $variables['attributes']['role'] = 'complementary';
+ }
+ }
+
+}