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

Breadcrumb

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

function DrupalFinderComposerRuntime::getVendorDir

Get the vendor path.

File

vendor/webflo/drupal-finder/src/DrupalFinderComposerRuntime.php, line 41

Class

DrupalFinderComposerRuntime

Namespace

DrupalFinder

Code

public function getVendorDir() : ?string {
    foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
        if ($loader->findFile(\Drupal::class)) {
            return realpath($vendorDir);
        }
    }
}

API Navigation

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