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

Breadcrumb

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

function SymfonyStyle::title

Overrides StyleInterface::title

File

vendor/symfony/console/Style/SymfonyStyle.php, line 72

Class

SymfonyStyle
Output decorator helpers for the Symfony Style Guide.

Namespace

Symfony\Component\Console\Style

Code

public function title(string $message) : void {
    $this->autoPrependBlock();
    $this->writeln([
        \sprintf('<comment>%s</>', OutputFormatter::escapeTrailingBackslash($message)),
        \sprintf('<comment>%s</>', str_repeat('=', Helper::width(Helper::removeDecoration($this->getFormatter(), $message)))),
    ]);
    $this->newLine();
}

API Navigation

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