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

Breadcrumb

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

function ProgressIndicator::start

Starts the indicator output.

File

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

Class

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

Namespace

Symfony\Component\Console\Helper

Code

public function start(string $message) : void {
    if ($this->started) {
        throw new LogicException('Progress indicator already started.');
    }
    $this->message = $message;
    $this->started = true;
    $this->finished = false;
    $this->startTime = time();
    $this->indicatorUpdateTime = $this->getCurrentTimeInMilliseconds() + $this->indicatorChangeInterval;
    $this->indicatorCurrent = 0;
    $this->display();
}

API Navigation

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