function ProcessOutputCallback::getOutput

Gets the output.

If there is anything in the error buffer, it will be logged as a warning.

Return value

array The output buffer.

1 call to ProcessOutputCallback::getOutput()
ProcessOutputCallback::parseJsonOutput in core/modules/package_manager/src/ProcessOutputCallback.php
Gets the parsed JSON output.

File

core/modules/package_manager/src/ProcessOutputCallback.php, line 69

Class

ProcessOutputCallback
A process callback for capturing output.

Namespace

Drupal\package_manager

Code

public function getOutput() : array {
  $error_output = $this->getErrorOutput();
  if ($error_output) {
    $this->logger
      ->warning(implode('', $error_output));
  }
  return $this->outBuffer;
}

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