5 use Drupal\Component\Plugin\PluginInspectionInterface;
6 use Drupal\Core\Cache\CacheableDependencyInterface;
9 * Provides an interface for a plugin for a section of the /admin/help page.
11 * Plugins of this type need to be annotated with
12 * \Drupal\help\Annotation\HelpSection annotation, and placed in the
13 * Plugin\HelpSection namespace directory. They are managed by the
14 * \Drupal\help\HelpSectionManager plugin manager class. There is a base
15 * class that may be helpful:
16 * \Drupal\help\Plugin\HelpSection\HelpSectionPluginBase.
18 interface HelpSectionPluginInterface extends PluginInspectionInterface, CacheableDependencyInterface {
22 * Returns the title of the help section.
25 * The title text, which could be a plain string or an object that can be
28 public function getTitle();
31 * Returns the description text for the help section.
34 * The description text, which could be a plain string or an object that
35 * can be cast to a string.
37 public function getDescription();
40 * Returns a list of topics to show in the help section.
43 * A sorted list of topic links or render arrays for topic links. The links
44 * will be shown in the help section; if the returned array of links is
45 * empty, the section will be shown with some generic empty text.
47 public function listTopics();