You are here

public function ExtensionDiscovery::setProfileDirectories in Drupal 9

Same name and namespace in other branches
  1. 8 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;
}