private function setValidation()
    {
        $this->sourceDomainsElement->addValidator(new CspHeaderValidator(['sourceElement' => $this->sourceElement]));
        $this->sourceElement->addValidator(tao_helpers_form_FormFactory::getValidator('NotEmpty'));
    }
private function setValidation()
    {
        $this->sourceDomainsElement->addValidator(new CspHeaderValidator(['sourceElement' => $this->sourceElement]));
        $this->sourceElement->addValidator(tao_helpers_form_FormFactory::getValidator('NotEmpty'));
    }
private function setValidation ( ) { $ this -> sourceDomainsElement -> addValidator ( new CspHeaderValidator ( [ 'sourceElement' => $ this -> sourceElement ] ) ) ; $ this -> sourceElement -> addValidator ( tao_helpers_form_FormFactory :: getValidator ( 'NotEmpty' ) ) ; }
Set the validation needed for the form elements.
Set the validation needed for the form elements .