public function InstallCommand::confirmation in CKEditor Media Embed Plugin 8
Same name in this branch
- 8 src/Command/InstallCommand.php \Drupal\ckeditor_media_embed\Command\InstallCommand::confirmation()
- 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/ InstallCommand.php, line 91
Class
- InstallCommand
- Class InstallCommand.
Namespace
Drupal\ckeditor_media_embed\CommandCode
public function confirmation($question, $default = FALSE) {
$helper = $this
->getHelper('question');
$confirmation_question = new ConfirmationQuestion($question, $default);
return $helper
->ask($this->input, $this->output, $confirmation_question);
}