X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole-core%2Fsrc%2FHelper%2FDrupalChoiceQuestionHelper.php;fp=vendor%2Fdrupal%2Fconsole-core%2Fsrc%2FHelper%2FDrupalChoiceQuestionHelper.php;h=788a81d9333cb7f57045d6f104031921aee94a5b;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad
diff --git a/vendor/drupal/console-core/src/Helper/DrupalChoiceQuestionHelper.php b/vendor/drupal/console-core/src/Helper/DrupalChoiceQuestionHelper.php
new file mode 100644
index 000000000..788a81d93
--- /dev/null
+++ b/vendor/drupal/console-core/src/Helper/DrupalChoiceQuestionHelper.php
@@ -0,0 +1,34 @@
+getQuestion();
+ $default = $question->getDefault();
+ $choices = $question->getChoices();
+
+ $text = sprintf(' %s [%s]:', $text, $choices[$default]);
+
+ $output->writeln($text);
+
+ $output->write(' > ');
+ }
+}