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

Breadcrumb

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

function Question::__construct

Parameters

string $question The question to ask to the user:

string|bool|int|float|null $default The default answer to return if the user enters nothing:

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

... See full list

3 methods override Question::__construct()
ChoiceQuestion::__construct in vendor/symfony/console/Question/ChoiceQuestion.php
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 37

Class

Question
Represents a Question.

Namespace

Symfony\Component\Console\Question

Code

public function __construct(string $question, string|bool|int|float|null $default = null) {
}
RSS feed
Powered by Drupal