You are here

public function HelpSectionPluginBase::getDescription in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/help/src/Plugin/HelpSection/HelpSectionPluginBase.php \Drupal\help\Plugin\HelpSection\HelpSectionPluginBase::getDescription()
  2. 10 core/modules/help/src/Plugin/HelpSection/HelpSectionPluginBase.php \Drupal\help\Plugin\HelpSection\HelpSectionPluginBase::getDescription()

Returns the description text for the help section.

Return value

string The description text, which could be a plain string or an object that can be cast to a string.

Overrides HelpSectionPluginInterface::getDescription

File

core/modules/help/src/Plugin/HelpSection/HelpSectionPluginBase.php, line 30

Class

HelpSectionPluginBase
Provides a base class for help section plugins.

Namespace

Drupal\help\Plugin\HelpSection

Code

public function getDescription() {
  return $this
    ->getPluginDefinition()['description'];
}