You are here

protected function ImageAPIOptimizeProcessorBinaryBase::findExecutablePath in Image Optimize Binaries 8

Search the local system for the given executable binary.

Parameters

null $executable: The name of the executable binary to find on the local system. If not specified the default executeable name for this class will be used.

Return value

string|false The path to the binary on the local system, or FALSE if it could not be located.

2 calls to ImageAPIOptimizeProcessorBinaryBase::findExecutablePath()
ImageAPIOptimizeProcessorBinaryBase::buildConfigurationForm in src/ImageAPIOptimizeProcessorBinaryBase.php
ImageAPIOptimizeProcessorBinaryBase::getFullPathToBinary in src/ImageAPIOptimizeProcessorBinaryBase.php

File

src/ImageAPIOptimizeProcessorBinaryBase.php, line 114

Class

ImageAPIOptimizeProcessorBinaryBase
Base class for image optimizations that run local binaries.

Namespace

Drupal\imageapi_optimize_binaries

Code

protected function findExecutablePath($executable = NULL) {
  if (is_null($executable)) {
    $executable = $this
      ->executableName();
  }
  return $this->shellOperations
    ->findExecutablePath($executable);
}