public function getRules($overrideRules = [])
    {
        $fieldRules = $this->formHelper->mergeFieldsRules($this->fields);

        return array_merge($fieldRules->getRules(), $overrideRules);
    }
public function getRules($overrideRules = [])
    {
        $fieldRules = $this->formHelper->mergeFieldsRules($this->fields);

        return array_merge($fieldRules->getRules(), $overrideRules);
    }
public function getRules ( $ overrideRules = [ ] ) { $ fieldRules = $ this -> formHelper -> mergeFieldsRules ( $ this -> fields ) ; return array_merge ( $ fieldRules -> getRules ( ) , $ overrideRules ) ; }
Get validation rules for the form.

@param array $overrideRules
@return array
Get validation rules for the form .