/** * @return mixed */ protected function getValueFromForm() { $value = $this->form->getValueForName($this->name); if (is_null($value) && !empty($this->form)) { $model = $this->form->instance; if (!is_null($model)) { $name = $this->name; $value = $model->{$name}; $oldInput = $this->formBuilder->getSessionStore()->getOldInput($name); if (!is_null($oldInput)) { $value = $oldInput; } } } return $value; }
/** * @return mixed */ protected function getValueFromForm() { return $this->form->getValueForName($this->name); }