You are here

public function FormatterHelper::formatSection in Zircon Profile 8

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

Formats a message within a section.

Parameters

string $section The section name:

string $message The message:

string $style The style to apply to the section:

Return value

string The format section

File

vendor/symfony/console/Helper/FormatterHelper.php, line 32

Class

FormatterHelper
The Formatter class provides helpers to format messages.

Namespace

Symfony\Component\Console\Helper

Code

public function formatSection($section, $message, $style = 'info') {
  return sprintf('<%s>[%s]</%s> %s', $style, $section, $style, $message);
}