Example #1
0
 /**
  * {@inheritdoc}
  */
 public function getAsQuestion()
 {
     $question = parent::getAsQuestion();
     $question->setNormalizer(function ($value) {
         return is_array($value) ? $value : preg_split('/[,;\\n] */', $value);
     });
     return $question;
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function getAsQuestion()
 {
     if ($this->asChoice) {
         $question = $this->getChoiceQuestion();
     } else {
         $question = parent::getAsQuestion();
         $question->setAutocompleterValues($this->options);
     }
     return $question;
 }