function HelpTopicDiscovery::__construct
Same name in other branches
- 8.9.x core/modules/help_topics/src/HelpTopicDiscovery.php \Drupal\help_topics\HelpTopicDiscovery::__construct()
- 10 core/modules/help/src/HelpTopicDiscovery.php \Drupal\help\HelpTopicDiscovery::__construct()
- 11.x core/modules/help/src/HelpTopicDiscovery.php \Drupal\help\HelpTopicDiscovery::__construct()
Constructs a HelpTopicDiscovery object.
Parameters
array $directories: An array of directories to scan, keyed by the provider. The value can either be a string or an array of strings. The string values should be the path of a directory to scan.
File
-
core/
modules/ help_topics/ src/ HelpTopicDiscovery.php, line 53
Class
- HelpTopicDiscovery
- Discovers help topic plugins from Twig files in help_topics directories.
Namespace
Drupal\help_topicsCode
public function __construct(array $directories) {
$this->directories = $directories;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.