You are here

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

Class

EmailFieldValidationRule
EmailFieldValidationRule.

Namespace

Drupal\field_validation\Plugin\FieldValidationRule

Code

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