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

Breadcrumb

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

function ProgressIndicator::display

4 calls to ProgressIndicator::display()
ProgressIndicator::advance in vendor/symfony/console/Helper/ProgressIndicator.php
Advances the indicator.
ProgressIndicator::finish in vendor/symfony/console/Helper/ProgressIndicator.php
Finish the indicator with message.
ProgressIndicator::setMessage in vendor/symfony/console/Helper/ProgressIndicator.php
Sets the current indicator message.
ProgressIndicator::start in vendor/symfony/console/Helper/ProgressIndicator.php
Starts the indicator output.

File

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

Class

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

Namespace

Symfony\Component\Console\Helper

Code

private function display() : void {
    if (OutputInterface::VERBOSITY_QUIET === $this->output
        ->getVerbosity()) {
        return;
    }
    $this->overwrite(preg_replace_callback('{%([a-z\\-_]+)(?:\\:([^%]+))?%}i', function ($matches) {
        if ($formatter = self::getPlaceholderFormatterDefinition($matches[1])) {
            return $formatter($this);
        }
        return $matches[0];
    }, $this->format ?? ''));
}

API Navigation

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