public function HelpTopicDiscovery::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/help_topics/src/HelpTopicDiscovery.php \Drupal\help_topics\HelpTopicDiscovery::__construct()
- 10 core/modules/help_topics/src/HelpTopicDiscovery.php \Drupal\help_topics\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;
}