class HelpTopicDiscovery

Same name in this branch
  1. 11.x core/modules/help/src/HelpTopicDiscovery.php \Drupal\help\HelpTopicDiscovery
Same name and namespace in other branches
  1. 9 core/modules/help_topics/src/HelpTopicDiscovery.php \Drupal\help_topics\HelpTopicDiscovery
  2. 8.9.x core/modules/help_topics/src/HelpTopicDiscovery.php \Drupal\help_topics\HelpTopicDiscovery
  3. 10 core/modules/help_topics/src/HelpTopicDiscovery.php \Drupal\help_topics\HelpTopicDiscovery
  4. 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

Expanded class hierarchy of HelpTopicDiscovery

See also

\Drupal\help_topics\HelpTopicTwig

File

core/modules/help_topics/src/HelpTopicDiscovery.php, line 18

Namespace

Drupal\help_topics
View 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.