.. include:: /Includes.rst.txt addValidator() '''''''''''''' Registers a validator for the form element. Signature:: public function addValidator(ValidatorInterface $validator);