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

Breadcrumb

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

function SymfonyStyle::createProgressBar

Overrides OutputStyle::createProgressBar

1 call to SymfonyStyle::createProgressBar()
SymfonyStyle::progressStart in vendor/symfony/console/Style/SymfonyStyle.php
Starts the progress output.

File

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

Class

SymfonyStyle
Output decorator helpers for the Symfony Style Guide.

Namespace

Symfony\Component\Console\Style

Code

public function createProgressBar(int $max = 0) : ProgressBar {
    $progressBar = parent::createProgressBar($max);
    if ('\\' !== \DIRECTORY_SEPARATOR || 'Hyper' === getenv('TERM_PROGRAM')) {
        $progressBar->setEmptyBarCharacter('░');
        // light shade character \u2591
        $progressBar->setProgressCharacter('');
        $progressBar->setBarCharacter('▓');
        // dark shade character \u2593
    }
    return $progressBar;
}

API Navigation

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