function HelpTopicDiscovery::__construct

Same name in other branches
  1. 9 core/modules/help_topics/src/HelpTopicDiscovery.php \Drupal\help_topics\HelpTopicDiscovery::__construct()
  2. 10 core/modules/help/src/HelpTopicDiscovery.php \Drupal\help\HelpTopicDiscovery::__construct()
  3. 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 52

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.