You are here

public static function ProgressBar::getPlaceholderFormatterDefinition in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Helper/ProgressBar.php \Symfony\Component\Console\Helper\ProgressBar::getPlaceholderFormatterDefinition()

Gets the placeholder formatter for a given name.

Parameters

string $name The placeholder name (including the delimiter char like %):

Return value

callable|null A PHP callable

File

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

Class

ProgressBar
The ProgressBar provides helpers to display progress output.

Namespace

Symfony\Component\Console\Helper

Code

public static function getPlaceholderFormatterDefinition($name) {
  if (!self::$formatters) {
    self::$formatters = self::initPlaceholderFormatters();
  }
  return isset(self::$formatters[$name]) ? self::$formatters[$name] : null;
}