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

Breadcrumb

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

function NullOutputFormatter::getStyle

Overrides OutputFormatterInterface::getStyle

File

vendor/symfony/console/Formatter/NullOutputFormatter.php, line 26

Class

NullOutputFormatter
@author Tien Xuan Vo <tien.xuan.vo@gmail.com>

Namespace

Symfony\Component\Console\Formatter

Code

public function getStyle(string $name) : OutputFormatterStyleInterface {
    // to comply with the interface we must return a OutputFormatterStyleInterface
    return $this->style ??= new NullOutputFormatterStyle();
}

API Navigation

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