Version 1
[yaffs-website] / web / core / modules / help / tests / modules / help_page_test / src / Plugin / HelpSection / EmptyHelpSection.php
diff --git a/web/core/modules/help/tests/modules/help_page_test/src/Plugin/HelpSection/EmptyHelpSection.php b/web/core/modules/help/tests/modules/help_page_test/src/Plugin/HelpSection/EmptyHelpSection.php
new file mode 100644 (file)
index 0000000..6fa2ffd
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+namespace Drupal\help_page_test\Plugin\HelpSection;
+
+use Drupal\help\Plugin\HelpSection\HelpSectionPluginBase;
+
+/**
+ * Provides an empty section for the help page, for testing.
+ *
+ * @HelpSection(
+ *   id = "empty_section",
+ *   title = @Translation("Empty section"),
+ *   description = @Translation("This description should appear."),
+ * )
+ */
+class EmptyHelpSection extends HelpSectionPluginBase {
+  /**
+   * {@inheritdoc}
+   */
+  public function listTopics() {
+    return [];
+  }
+
+}