src/CrudKit/Data/ArrayDataProvider.php
protected function getValidatorForField($formKey)
    {
        $validator = null;
        if( isset($this->schema[$formKey]['options']['validator']) ) {
            $validator = $this->schema[$formKey]['options']['validator'];
            if(!is_callable($validator)) {
                $validator = null;
            }
        }
        return $validator;
    }
protected function getValidatorForField($formKey)
    {
        $validator = null;
        if( isset($this->schema[$formKey]['options']['validator']) ) {
            $validator = $this->schema[$formKey]['options']['validator'];
            if(!is_callable($validator)) {
                $validator = null;
            }
        }
        return $validator;
    }
protected function getValidatorForField ( $ formKey ) { $ validator = null ; if ( isset ( $ this -> schema [ $ formKey ] [ 'options' ] [ 'validator' ] ) ) { $ validator = $ this -> schema [ $ formKey ] [ 'options' ] [ 'validator' ] ; if ( ! is_callable ( $ validator ) ) { $ validator = null ; } } return $ validator ; }
Returns a callable validator for this field if it exists, and null otherwise

@param string $formKey
@return callable|null
Returns a callable validator for this field if it exists and null otherwise