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

Breadcrumb

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

function ProgressBar::getPlaceholderFormatter

Gets the placeholder formatter for a given name.

Parameters

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

1 call to ProgressBar::getPlaceholderFormatter()
ProgressBar::buildLine in vendor/symfony/console/Helper/ProgressBar.php

File

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

Class

ProgressBar
The ProgressBar provides helpers to display progress output.

Namespace

Symfony\Component\Console\Helper

Code

public function getPlaceholderFormatter(string $name) : ?callable {
    return $this->placeholders[$name] ?? $this::getPlaceholderFormatterDefinition($name);
}

API Navigation

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