You are here

public function NumericFieldValidationRule::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/NumericFieldValidationRule.php, line 24

Class

NumericFieldValidationRule
NumericFieldValidationRule.

Namespace

Drupal\field_validation\Plugin\FieldValidationRule

Code

public function addFieldValidationRule(FieldValidationRuleSetInterface $field_validation_rule_set) {
  return TRUE;
}