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

Breadcrumb

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

function SymfonyStyle::text

Overrides StyleInterface::text

File

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

Class

SymfonyStyle
Output decorator helpers for the Symfony Style Guide.

Namespace

Symfony\Component\Console\Style

Code

public function text(string|array $message) : void {
    $this->autoPrependText();
    $messages = \is_array($message) ? array_values($message) : [
        $message,
    ];
    foreach ($messages as $message) {
        $this->writeln(\sprintf(' %s', $message));
    }
}

API Navigation

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