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

Breadcrumb

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

function OutputFormatter::getStyle

Overrides OutputFormatterInterface::getStyle

File

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

Class

OutputFormatter
Formatter class for console output.

Namespace

Symfony\Component\Console\Formatter

Code

public function getStyle(string $name) : OutputFormatterStyleInterface {
    if (!$this->hasStyle($name)) {
        throw new InvalidArgumentException(\sprintf('Undefined style: "%s".', $name));
    }
    return $this->styles[strtolower($name)];
}

API Navigation

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