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

Breadcrumb

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

function ProgressIndicator::determineBestFormat

1 call to ProgressIndicator::determineBestFormat()
ProgressIndicator::__construct in vendor/symfony/console/Helper/ProgressIndicator.php

File

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

Class

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

Namespace

Symfony\Component\Console\Helper

Code

private function determineBestFormat() : string {
    return match ($this->output
        ->getVerbosity()) {    OutputInterface::VERBOSITY_VERBOSE => $this->output
            ->isDecorated() ? 'verbose' : 'verbose_no_ansi',
        OutputInterface::VERBOSITY_VERY_VERBOSE, OutputInterface::VERBOSITY_DEBUG => $this->output
            ->isDecorated() ? 'very_verbose' : 'very_verbose_no_ansi',
        default => $this->output
            ->isDecorated() ? 'normal' : 'normal_no_ansi',
    
    };
}

API Navigation

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