Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DrupalFinder.php

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

DrupalFinder

Namespace

DrupalFinder

Code

public function getVendorDir() {
    $environment_path = $this->getValidEnvironmentVariablePath(self::ENV_VENDOR_DIR);
    return !empty($environment_path) ? $environment_path : $this->vendorDir;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal