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

Breadcrumb

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

function ChoiceQuestion::setMultiselect

Sets multiselect option.

When multiselect is set to true, multiple choices can be answered.

Return value

$this

File

vendor/symfony/console/Question/ChoiceQuestion.php, line 62

Class

ChoiceQuestion
Represents a choice question.

Namespace

Symfony\Component\Console\Question

Code

public function setMultiselect(bool $multiselect) : static {
    $this->multiselect = $multiselect;
    $this->setValidator($this->getDefaultValidator());
    return $this;
}

API Navigation

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