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

Breadcrumb

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

function ProgressBar::setFormatDefinition

Sets a format for a given name.

This method also allow you to override an existing format.

Parameters

string $name The format name:

string $format A format string:

File

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

Class

ProgressBar
The ProgressBar provides helpers to display progress output.

Namespace

Symfony\Component\Console\Helper

Code

public static function setFormatDefinition(string $name, string $format) : void {
    self::$formats ??= self::initFormats();
    self::$formats[$name] = $format;
}

API Navigation

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