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

Breadcrumb

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

function DebugFormatterHelper::start

Starts a debug formatting session.

File

vendor/symfony/console/Helper/DebugFormatterHelper.php, line 30

Class

DebugFormatterHelper
Helps outputting debug information when running an external program from a command.

Namespace

Symfony\Component\Console\Helper

Code

public function start(string $id, string $message, string $prefix = 'RUN') : string {
    $this->started[$id] = [
        'border' => ++$this->count % \count(self::COLORS),
    ];
    return \sprintf("%s<bg=blue;fg=white> %s </> <fg=blue>%s</>\n", $this->getBorder($id), $prefix, $message);
}

API Navigation

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