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

Breadcrumb

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

function Question::getMaxAttempts

Gets the maximum number of attempts.

Null means an unlimited number of attempts.

File

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

Class

Question
Represents a Question.

Namespace

Symfony\Component\Console\Question

Code

public function getMaxAttempts() : ?int {
    return $this->attempts;
}
RSS feed
Powered by Drupal