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

Breadcrumb

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

function ProcessOutputCallback::__invoke

File

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

Class

ProcessOutputCallback
A process callback for capturing output.

Namespace

Drupal\package_manager

Code

public function __invoke(OutputTypeEnum $type, string $buffer) : void {
    if ($type === OutputTypeEnum::OUT) {
        $this->outBuffer[] = $buffer;
    }
    elseif ($type === OutputTypeEnum::ERR) {
        $this->errorBuffer[] = $buffer;
    }
}

API Navigation

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