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

Breadcrumb

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

function OutputFormatter::setStyle

Overrides OutputFormatterInterface::setStyle

1 call to OutputFormatter::setStyle()
OutputFormatter::__construct in vendor/symfony/console/Formatter/OutputFormatter.php
Initializes console output formatter.

File

vendor/symfony/console/Formatter/OutputFormatter.php, line 95

Class

OutputFormatter
Formatter class for console output.

Namespace

Symfony\Component\Console\Formatter

Code

public function setStyle(string $name, OutputFormatterStyleInterface $style) : void {
    $this->styles[strtolower($name)] = $style;
}

API Navigation

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