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

Breadcrumb

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

function Question::setNormalizer

Sets a normalizer for the response.

The normalizer can be a callable (a string), a closure or a class implementing __invoke.

Return value

$this

2 calls to Question::setNormalizer()
ConfirmationQuestion::__construct in vendor/symfony/console/Question/ConfirmationQuestion.php
StrictConfirmationQuestion::__construct in vendor/composer/composer/src/Composer/Question/StrictConfirmationQuestion.php
Constructor.s

File

vendor/symfony/console/Question/Question.php, line 244

Class

Question
Represents a Question.

Namespace

Symfony\Component\Console\Question

Code

public function setNormalizer(callable $normalizer) : static {
    $this->normalizer = $normalizer(...);
    return $this;
}
RSS feed
Powered by Drupal