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

Breadcrumb

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

function ProgressBar::advance

Advances the progress output X steps.

Parameters

int $step Number of steps to advance:

1 call to ProgressBar::advance()
ProgressBar::iterate in vendor/symfony/console/Helper/ProgressBar.php
Returns an iterator that will automatically update the progress bar when iterated.

File

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

Class

ProgressBar
The ProgressBar provides helpers to display progress output.

Namespace

Symfony\Component\Console\Helper

Code

public function advance(int $step = 1) : void {
    $this->setProgress($this->step + $step);
}

API Navigation

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