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

Breadcrumb

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

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

DrupalFinder

Namespace

DrupalFinder

Code

public function getComposerRoot() {
    $environment_path = $this->getValidEnvironmentVariablePath(self::ENV_COMPOSER_ROOT);
    return !empty($environment_path) ? $environment_path : $this->composerRoot;
}

API Navigation

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