public function FieldValidationRuleInterface::setErrorMessage in Field Validation 8
Sets the error_message for this field_validation_rule.
Parameters
int $error_message: The error message for this field_validation_rule.
Return value
$this
1 method overrides FieldValidationRuleInterface::setErrorMessage()
- FieldValidationRuleBase::setErrorMessage in src/
FieldValidationRuleBase.php - Sets the error message for this field_validation_rule.
File
- src/
FieldValidationRuleInterface.php, line 158
Class
- FieldValidationRuleInterface
- Defines the interface for Field Validation.
Namespace
Drupal\field_validationCode
public function setErrorMessage($error_message);