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

Breadcrumb

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

function SymfonyStyle::autoPrependText

2 calls to SymfonyStyle::autoPrependText()
SymfonyStyle::listing in vendor/symfony/console/Style/SymfonyStyle.php
Formats a list.
SymfonyStyle::text in vendor/symfony/console/Style/SymfonyStyle.php
Formats informational text.

File

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

Class

SymfonyStyle
Output decorator helpers for the Symfony Style Guide.

Namespace

Symfony\Component\Console\Style

Code

private function autoPrependText() : void {
    $fetched = $this->bufferedOutput
        ->fetch();
    // Prepend new line if last char isn't EOL:
    if ($fetched && !str_ends_with($fetched, "\n")) {
        $this->newLine();
    }
}

API Navigation

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