You are here

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_validation

Code

public function hasErrorMessageDefined() {
  return $this->errorMessage !== NULL;
}