class HelpTopicDiscovery
Same name in this branch
- 11.x core/modules/help/src/HelpTopicDiscovery.php \Drupal\help\HelpTopicDiscovery
Same name and namespace in other branches
- 9 core/modules/help_topics/src/HelpTopicDiscovery.php \Drupal\help_topics\HelpTopicDiscovery
- 8.9.x core/modules/help_topics/src/HelpTopicDiscovery.php \Drupal\help_topics\HelpTopicDiscovery
- 10 core/modules/help_topics/src/HelpTopicDiscovery.php \Drupal\help_topics\HelpTopicDiscovery
- 10 core/modules/help/src/HelpTopicDiscovery.php \Drupal\help\HelpTopicDiscovery
Discovers help topic plugins from Twig files in help_topics directories.
Loader
@internal Help Topics is currently experimental and should only be leveraged by experimental modules and development releases of contributed modules. See https://www.drupal.org/core/experimental for more information.
Hierarchy
- class \Drupal\help\HelpTopicDiscovery extends \Drupal\Component\Plugin\Discovery\DiscoveryInterface uses \Drupal\Component\Plugin\Discovery\DiscoveryTrait
- class \Drupal\help_topics\HelpTopicDiscovery implements \Drupal\help\HelpTopicDiscovery
Expanded class hierarchy of HelpTopicDiscovery
See also
\Drupal\help_topics\HelpTopicTwig
File
-
core/
modules/ help_topics/ src/ HelpTopicDiscovery.php, line 18
Namespace
Drupal\help_topicsView source
class HelpTopicDiscovery extends CoreHelpTopicDiscovery {
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
DiscoveryTrait::doGetDefinition | protected | function | Gets a specific plugin definition. | ||
DiscoveryTrait::getDefinition | public | function | 3 | ||
DiscoveryTrait::hasDefinition | public | function | |||
HelpTopicDiscovery::$directories | protected | property | An array of directories to scan, keyed by the provider. | ||
HelpTopicDiscovery::FILE_KEY | constant | Defines the key in the discovered data where the file path is stored. | |||
HelpTopicDiscovery::findAll | public | function | Returns an array of discoverable items. | ||
HelpTopicDiscovery::findFiles | protected | function | Returns an array of providers keyed by file path. | ||
HelpTopicDiscovery::getDefinitions | public | function | Gets the definition of all plugins for this type. | Overrides DiscoveryTrait::getDefinitions | |
HelpTopicDiscovery::__construct | public | function | Constructs a HelpTopicDiscovery object. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.