Cake\ElasticSearch\View\Form\DocumentContext::getValidator PHP Method

getValidator() protected method

Get the validator for the current type.
protected getValidator ( ) : Cake\Validation\Validator
return Cake\Validation\Validator The validator for the type.
    protected function getValidator()
    {
        return $this->_context['type']->validator($this->_context['validator']);
    }