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

Breadcrumb

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

function SymfonyStyle::progressIterate

@template TKey @template TValue

Parameters

iterable<TKey, TValue> $iterable:

int|null $max Number of steps to complete the bar (0 if indeterminate), if null it will be inferred from $iterable:

Return value

iterable<TKey, TValue>

See also

ProgressBar::iterate()

File

vendor/symfony/console/Style/SymfonyStyle.php, line 289

Class

SymfonyStyle
Output decorator helpers for the Symfony Style Guide.

Namespace

Symfony\Component\Console\Style

Code

public function progressIterate(iterable $iterable, ?int $max = null) : iterable {
    yield from $this->createProgressBar()
        ->iterate($iterable, $max);
    $this->newLine(2);
}

API Navigation

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