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

Breadcrumb

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

function TrimmedBufferOutput::fetch

Empties buffer and returns its content.

File

vendor/symfony/console/Output/TrimmedBufferOutput.php, line 40

Class

TrimmedBufferOutput
A BufferedOutput that keeps only the last N chars.

Namespace

Symfony\Component\Console\Output

Code

public function fetch() : string {
    $content = $this->buffer;
    $this->buffer = '';
    return $content;
}

API Navigation

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