function ExtensionDiscovery::setProfileDirectories
Same name in other branches
- 9 core/lib/Drupal/Core/Extension/ExtensionDiscovery.php \Drupal\Core\Extension\ExtensionDiscovery::setProfileDirectories()
- 10 core/lib/Drupal/Core/Extension/ExtensionDiscovery.php \Drupal\Core\Extension\ExtensionDiscovery::setProfileDirectories()
- 11.x core/lib/Drupal/Core/Extension/ExtensionDiscovery.php \Drupal\Core\Extension\ExtensionDiscovery::setProfileDirectories()
Sets explicit profile directories to scan.
Parameters
array $paths: A list of installation profile directory paths relative to the system root directory (without trailing slash) to search for extensions.
Return value
$this
File
-
core/
lib/ Drupal/ Core/ Extension/ ExtensionDiscovery.php, line 257
Class
- ExtensionDiscovery
- Discovers available extensions in the filesystem.
Namespace
Drupal\Core\ExtensionCode
public function setProfileDirectories(array $paths = NULL) {
$this->profileDirectories = $paths;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.