/** * {@inheritdoc} */ protected function extendView(FormEntityView $view) { parent::extendView($view); $view->attributes['type'] = $this->inputType; $view->attributes['value'] = $this->getValue(); }
/** * {@inheritdoc} */ protected function extendView(FormEntityView $view) { parent::extendView($view); $view->lazy = $this->isLazy(); $view->choicesLabelSource = $this->getChoiceLabelSource(); $view->choicesValueSource = $this->getChoiceValueSource(); }