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

Breadcrumb

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

function ProgressBar::setRealFormat

2 calls to ProgressBar::setRealFormat()
ProgressBar::clear in vendor/symfony/console/Helper/ProgressBar.php
Removes the progress bar from the current line.
ProgressBar::display in vendor/symfony/console/Helper/ProgressBar.php
Outputs the current progress string.

File

vendor/symfony/console/Helper/ProgressBar.php, line 488

Class

ProgressBar
The ProgressBar provides helpers to display progress output.

Namespace

Symfony\Component\Console\Helper

Code

private function setRealFormat(string $format) : void {
    // try to use the _nomax variant if available
    if (!$this->max && null !== self::getFormatDefinition($format . '_nomax')) {
        $this->format = self::getFormatDefinition($format . '_nomax');
    }
    elseif (null !== self::getFormatDefinition($format)) {
        $this->format = self::getFormatDefinition($format);
    }
    else {
        $this->format = $format;
    }
}

API Navigation

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