public function Validator::hasErrorMessageDefined in Form API Validation 8.2
Check if there is user defined error message.
Return value
bool Check.
File
- src/
Validator.php, line 135
Class
- Validator
- Validator Class to parse Form Element validators content.
Namespace
Drupal\fapi_validationCode
public function hasErrorMessageDefined() {
return $this->errorMessage !== NULL;
}