public function getLoadValue()
    {
        if ($this->formField->value !== null) {
            return $this->formField->value;
        }

        $defaultValue = !$this->model->exists
            ? $this->formField->getDefaultFromData($this->data ?: $this->model)
            : null;

        return $this->formField->getValueFromData($this->data ?: $this->model, $defaultValue);
    }
public function getLoadValue()
    {
        if ($this->formField->value !== null) {
            return $this->formField->value;
        }

        $defaultValue = !$this->model->exists
            ? $this->formField->getDefaultFromData($this->data ?: $this->model)
            : null;

        return $this->formField->getValueFromData($this->data ?: $this->model, $defaultValue);
    }
public function getLoadValue ( ) { if ( $ this -> formField -> value !== null ) { return $ this -> formField -> value ; } $ defaultValue = ! $ this -> model -> exists ? $ this -> formField -> getDefaultFromData ( $ this -> data ? : $ this -> model ) : null ; return $ this -> formField -> getValueFromData ( $ this -> data ? : $ this -> model , $ defaultValue ) ; }
Returns the value for this form field,
supports nesting via HTML array.
@return string
Returns the value for this form field supports nesting via HTML array .