function DrupalFinder::getVendorDir
Get the vendor path.
Return value
string|bool The path to the vendor directory, if it was found. False otherwise.
1 call to DrupalFinder::getVendorDir()
- 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 131
Class
Namespace
DrupalFinderCode
public function getVendorDir() {
$environment_path = $this->getValidEnvironmentVariablePath(self::ENV_VENDOR_DIR);
return !empty($environment_path) ? $environment_path : $this->vendorDir;
}