function DrupalFinder::getComposerRoot
Get the Composer root.
Return value
string|bool The path to the Composer root, if it was discovered. False otherwise.
1 call to DrupalFinder::getComposerRoot()
- DrupalFinder::allPathsKnown in vendor/
webflo/ drupal-finder/ src/ DrupalFinder.php - Helper function to quickly determine whether or not all paths are known.
File
-
vendor/
webflo/ drupal-finder/ src/ DrupalFinder.php, line 119
Class
Namespace
DrupalFinderCode
public function getComposerRoot() {
$environment_path = $this->getValidEnvironmentVariablePath(self::ENV_COMPOSER_ROOT);
return !empty($environment_path) ? $environment_path : $this->composerRoot;
}