function ExtensionDiscovery::setProfileDirectories

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Extension/ExtensionDiscovery.php \Drupal\Core\Extension\ExtensionDiscovery::setProfileDirectories()
  2. 10 core/lib/Drupal/Core/Extension/ExtensionDiscovery.php \Drupal\Core\Extension\ExtensionDiscovery::setProfileDirectories()
  3. 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\Extension

Code

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.