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

Breadcrumb

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

function ProgressIndicator::advance

Advances the indicator.

File

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

Class

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

Namespace

Symfony\Component\Console\Helper

Code

public function advance() : void {
    if (!$this->started) {
        throw new LogicException('Progress indicator has not yet been started.');
    }
    if (!$this->output
        ->isDecorated()) {
        return;
    }
    $currentTime = $this->getCurrentTimeInMilliseconds();
    if ($currentTime < $this->indicatorUpdateTime) {
        return;
    }
    $this->indicatorUpdateTime = $currentTime + $this->indicatorChangeInterval;
    ++$this->indicatorCurrent;
    $this->display();
}

API Navigation

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