class EmptyHelpSection
Same name in other branches
- 8.9.x core/modules/help/tests/modules/help_page_test/src/Plugin/HelpSection/EmptyHelpSection.php \Drupal\help_page_test\Plugin\HelpSection\EmptyHelpSection
- 10 core/modules/help/tests/modules/help_page_test/src/Plugin/HelpSection/EmptyHelpSection.php \Drupal\help_page_test\Plugin\HelpSection\EmptyHelpSection
- 11.x core/modules/help/tests/modules/help_page_test/src/Plugin/HelpSection/EmptyHelpSection.php \Drupal\help_page_test\Plugin\HelpSection\EmptyHelpSection
Provides an empty section for the help page, for testing.
Plugin annotation
@HelpSection(
id = "empty_section",
title = @Translation("Empty section"),
description = @Translation("This description should appear."),
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
- class \Drupal\help\Plugin\HelpSection\HelpSectionPluginBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\help\HelpSectionPluginInterface uses \Drupal\Core\Cache\UnchangingCacheableDependencyTrait
- class \Drupal\help_page_test\Plugin\HelpSection\EmptyHelpSection extends \Drupal\help\Plugin\HelpSection\HelpSectionPluginBase
- class \Drupal\help\Plugin\HelpSection\HelpSectionPluginBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\help\HelpSectionPluginInterface uses \Drupal\Core\Cache\UnchangingCacheableDependencyTrait
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
Expanded class hierarchy of EmptyHelpSection
File
-
core/
modules/ help/ tests/ modules/ help_page_test/ src/ Plugin/ HelpSection/ EmptyHelpSection.php, line 16
Namespace
Drupal\help_page_test\Plugin\HelpSectionView source
class EmptyHelpSection extends HelpSectionPluginBase {
/**
* {@inheritdoc}
*/
public function listTopics() {
return [];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
EmptyHelpSection::listTopics | public | function | Returns a list of topics to show in the help section. | Overrides HelpSectionPluginInterface::listTopics | |
HelpSectionPluginBase::getDescription | public | function | Returns the description text for the help section. | Overrides HelpSectionPluginInterface::getDescription | |
HelpSectionPluginBase::getTitle | public | function | Returns the title of the help section. | Overrides HelpSectionPluginInterface::getTitle | |
PluginInspectionInterface::getPluginDefinition | public | function | Gets the definition of the plugin implementation. | 6 | |
PluginInspectionInterface::getPluginId | public | function | Gets the plugin_id of the plugin instance. | 2 | |
UnchangingCacheableDependencyTrait::getCacheContexts | public | function | 1 | ||
UnchangingCacheableDependencyTrait::getCacheMaxAge | public | function | 3 | ||
UnchangingCacheableDependencyTrait::getCacheTags | public | function | 1 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.