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

Breadcrumb

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

function SymfonyStyle::writeln

Overrides OutputStyle::writeln

5 calls to SymfonyStyle::writeln()
SymfonyStyle::block in vendor/symfony/console/Style/SymfonyStyle.php
Formats a message as a block of text.
SymfonyStyle::listing in vendor/symfony/console/Style/SymfonyStyle.php
Formats a list.
SymfonyStyle::section in vendor/symfony/console/Style/SymfonyStyle.php
Formats a section title.
SymfonyStyle::text in vendor/symfony/console/Style/SymfonyStyle.php
Formats informational text.
SymfonyStyle::title in vendor/symfony/console/Style/SymfonyStyle.php
Formats a command title.

File

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

Class

SymfonyStyle
Output decorator helpers for the Symfony Style Guide.

Namespace

Symfony\Component\Console\Style

Code

public function writeln(string|iterable $messages, int $type = self::OUTPUT_NORMAL) : void {
    if (!is_iterable($messages)) {
        $messages = [
            $messages,
        ];
    }
    foreach ($messages as $message) {
        parent::writeln($message, $type);
        $this->writeBuffer($message, true, $type);
    }
}

API Navigation

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