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

Breadcrumb

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

function ExecutableFinder::find

Same name in this branch
  1. 11.1.x vendor/php-tuf/composer-stager/src/Internal/Finder/Service/ExecutableFinder.php \PhpTuf\ComposerStager\Internal\Finder\Service\ExecutableFinder::find()
  2. 11.1.x vendor/symfony/process/ExecutableFinder.php \Symfony\Component\Process\ExecutableFinder::find()

File

core/modules/package_manager/src/ExecutableFinder.php, line 28

Class

ExecutableFinder
An executable finder which looks for executable paths in configuration.

Namespace

Drupal\package_manager

Code

public function find(string $name) : string {
    $executables = $this->configFactory
        ->get('package_manager.settings')
        ->get('executables');
    return $executables[$name] ?? $this->decorated
        ->find($name);
}

API Navigation

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