public function LengthFieldValidationRule::addFieldValidationRule in Field Validation 8
Applies a field_validation_rule to the field_validation_rule_set.
Parameters
\Drupal\field_validation\FieldValidationRuleSetInterface $field_validation_rule_set: An field_validation_rule_set object.
Return value
bool TRUE on success. FALSE if unable to add the field_validation_rule to the field_validation_rule_set.
Overrides FieldValidationRuleInterface::addFieldValidationRule
File
- src/
Plugin/ FieldValidationRule/ LengthFieldValidationRule.php, line 24
Class
- LengthFieldValidationRule
- LengthFieldValidationRule.
Namespace
Drupal\field_validation\Plugin\FieldValidationRuleCode
public function addFieldValidationRule(FieldValidationRuleSetInterface $field_validation_rule_set) {
return TRUE;
}