You are here

public function InstallCommand::confirmation in CKEditor Media Embed Plugin 8

Same name in this branch
  1. 8 src/Command/InstallCommand.php \Drupal\ckeditor_media_embed\Command\InstallCommand::confirmation()
  2. 8 src/Command/Drush/InstallCommand.php \Drupal\ckeditor_media_embed\Command\Drush\InstallCommand::confirmation()

Present confirmation question to user.

Parameters

string $question: The confirmation question.

$default: The default value to return if user doesn’t enter any valid input.

Return value

mixed The user answer

Overrides CKEditorCliCommandInterface::confirmation

File

src/Command/Drush/InstallCommand.php, line 104

Class

InstallCommand
Class InstallCommand.

Namespace

Drupal\ckeditor_media_embed\Command\Drush

Code

public function confirmation($question, $default = FALSE) {
  return $this->io
    ->confirm($question, $default);
}