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

Breadcrumb

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

function ProgressIndicator::overwrite

Overwrites a previous message to the output.

1 call to ProgressIndicator::overwrite()
ProgressIndicator::display in vendor/symfony/console/Helper/ProgressIndicator.php

File

vendor/symfony/console/Helper/ProgressIndicator.php, line 215

Class

ProgressIndicator
@author Kevin Bond <kevinbond@gmail.com>

Namespace

Symfony\Component\Console\Helper

Code

private function overwrite(string $message) : void {
    if ($this->output
        ->isDecorated()) {
        $this->output
            ->write("\r\x1b[2K");
        $this->output
            ->write($message);
    }
    else {
        $this->output
            ->writeln($message);
    }
}

API Navigation

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