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

Breadcrumb

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

function FormatterHelper::formatSection

Formats a message within a section.

File

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

Class

FormatterHelper
The Formatter class provides helpers to format messages.

Namespace

Symfony\Component\Console\Helper

Code

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

API Navigation

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