You are here

public function HelpTopicDiscovery::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/help_topics/src/HelpTopicDiscovery.php \Drupal\help_topics\HelpTopicDiscovery::__construct()
  2. 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_topics

Code

public function __construct(array $directories) {
  $this->directories = $directories;
}