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

Breadcrumb

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

function NullOutput::getFormatter

Overrides OutputInterface::getFormatter

File

vendor/symfony/console/Output/NullOutput.php, line 34

Class

NullOutput
NullOutput suppresses all output.

Namespace

Symfony\Component\Console\Output

Code

public function getFormatter() : OutputFormatterInterface {
    // to comply with the interface we must return a OutputFormatterInterface
    return $this->formatter ??= new NullOutputFormatter();
}
RSS feed
Powered by Drupal