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

Breadcrumb

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

function ProgressBar::getFormatDefinition

Gets the format for a given name.

Parameters

string $name The format name:

1 call to ProgressBar::getFormatDefinition()
ProgressBar::setRealFormat in vendor/symfony/console/Helper/ProgressBar.php

File

vendor/symfony/console/Helper/ProgressBar.php, line 164

Class

ProgressBar
The ProgressBar provides helpers to display progress output.

Namespace

Symfony\Component\Console\Helper

Code

public static function getFormatDefinition(string $name) : ?string {
    self::$formats ??= self::initFormats();
    return self::$formats[$name] ?? null;
}

API Navigation

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