/** * @return array|string */ protected function getValue() { if (isset($this->forceValue)) { return $this->forceValue; } if ($this->open->isSubmitted()) { return $this->dataStore->getOldValue($this->name); } return isset($this->value) ? $this->value : $this->dataStore->getModelValue($this->name); }
/** * @return bool */ public function isSubmitted() { return $this->data->getOldValue('_form') == $this->name; }