function 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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.