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