3 namespace Drupal\help\Plugin\HelpSection;
5 use Drupal\Core\Cache\UnchangingCacheableDependencyTrait;
6 use Drupal\Core\Plugin\PluginBase;
7 use Drupal\help\HelpSectionPluginInterface;
10 * Provides a base class for help section plugins.
12 * @see \Drupal\help\HelpSectionPluginInterface
13 * @see \Drupal\help\Annotation\HelpSection
14 * @see \Drupal\help\HelpSectionManager
16 abstract class HelpSectionPluginBase extends PluginBase implements HelpSectionPluginInterface {
18 use UnchangingCacheableDependencyTrait;
23 public function getTitle() {
24 return $this->getPluginDefinition()['title'];
30 public function getDescription() {
31 return $this->getPluginDefinition()['description'];