src/Form.php
public function value($name, $default = null)
    {
        if (! is_null($value = $this->valueFromOld($name))) {
            return $value;
        }

        if (! is_null($value = $this->valueFromModel($name))) {
            return $value;
        }
        return $default;
    }
public function value($name, $default = null)
    {
        if (! is_null($value = $this->valueFromOld($name))) {
            return $value;
        }

        if (! is_null($value = $this->valueFromModel($name))) {
            return $value;
        }
        return $default;
    }
public function value ( $ name , $ default = null ) { if ( ! is_null ( $ value = $ this -> valueFromOld ( $ name ) ) ) { return $ value ; } if ( ! is_null ( $ value = $ this -> valueFromModel ( $ name ) ) ) { return $ value ; } return $ default ; }
Get the value to use in an input field.

@param  string $name
@param  mixed|null $default
@return mixed|null
Get the value to use in an input field .