abstract class HelpSectionPluginBase in Drupal 10
Same name and namespace in other branches
- 8 core/modules/help/src/Plugin/HelpSection/HelpSectionPluginBase.php \Drupal\help\Plugin\HelpSection\HelpSectionPluginBase
- 9 core/modules/help/src/Plugin/HelpSection/HelpSectionPluginBase.php \Drupal\help\Plugin\HelpSection\HelpSectionPluginBase
Provides a base class for help section plugins.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
- class \Drupal\help\Plugin\HelpSection\HelpSectionPluginBase implements HelpSectionPluginInterface uses UnchangingCacheableDependencyTrait
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
Expanded class hierarchy of HelpSectionPluginBase
See also
\Drupal\help\HelpSectionPluginInterface
\Drupal\help\Annotation\HelpSection
\Drupal\help\HelpSectionManager
2 files declare their use of HelpSectionPluginBase
- HelpTopicSection.php in core/
modules/ help_topics/ src/ Plugin/ HelpSection/ HelpTopicSection.php - TourHelpSection.php in core/
modules/ tour/ src/ Plugin/ HelpSection/ TourHelpSection.php
File
- core/
modules/ help/ src/ Plugin/ HelpSection/ HelpSectionPluginBase.php, line 16
Namespace
Drupal\help\Plugin\HelpSectionView source
abstract class HelpSectionPluginBase extends PluginBase implements HelpSectionPluginInterface {
use UnchangingCacheableDependencyTrait;
/**
* {@inheritdoc}
*/
public function getTitle() {
return $this
->getPluginDefinition()['title'];
}
/**
* {@inheritdoc}
*/
public function getDescription() {
return $this
->getPluginDefinition()['description'];
}
}