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

Breadcrumb

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

function IOInterface::askConfirmation

Asks a confirmation to the user.

The question will be asked until the user answers by nothing, yes, or no.

Parameters

string $question The question to ask:

bool $default The default answer if the user enters nothing:

Return value

bool true if the user has confirmed, false otherwise

2 methods override IOInterface::askConfirmation()
ConsoleIO::askConfirmation in vendor/composer/composer/src/Composer/IO/ConsoleIO.php
@inheritDoc
NullIO::askConfirmation in vendor/composer/composer/src/Composer/IO/NullIO.php
@inheritDoc

File

vendor/composer/composer/src/Composer/IO/IOInterface.php, line 155

Class

IOInterface
The Input/Output helper interface.

Namespace

Composer\IO

Code

public function askConfirmation(string $question, bool $default = true);

API Navigation

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