function HelpSectionPluginBase::getTitle

Same name and namespace in other branches
  1. 8.9.x core/modules/help/src/Plugin/HelpSection/HelpSectionPluginBase.php \Drupal\help\Plugin\HelpSection\HelpSectionPluginBase::getTitle()
  2. 10 core/modules/help/src/Plugin/HelpSection/HelpSectionPluginBase.php \Drupal\help\Plugin\HelpSection\HelpSectionPluginBase::getTitle()
  3. 11.x core/modules/help/src/Plugin/HelpSection/HelpSectionPluginBase.php \Drupal\help\Plugin\HelpSection\HelpSectionPluginBase::getTitle()

Returns the title of the help section.

Return value

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

Overrides HelpSectionPluginInterface::getTitle

File

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

Class

HelpSectionPluginBase
Provides a base class for help section plugins.

Namespace

Drupal\help\Plugin\HelpSection

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.