src/View/Helper/SearchHelper.php
protected function _setValue(&$input, $param)
    {
        $value = $param->value();
        if (!$param->isEmpty()) {
            $input['value'] = $value;
        } else {
            $input['value'] = '';
        }

        return $input;
    }
protected function _setValue(&$input, $param)
    {
        $value = $param->value();
        if (!$param->isEmpty()) {
            $input['value'] = $value;
        } else {
            $input['value'] = '';
        }

        return $input;
    }
protected function _setValue ( & $ input , $ param ) { $ value = $ param -> value ( ) ; if ( ! $ param -> isEmpty ( ) ) { $ input [ 'value' ] = $ value ; } else { $ input [ 'value' ] = '' ; } return $ input ; }
Set value for field

@param array $input Field options.
@param BaseParameter $param Form parameter.
@return array
Set value for field