You are here

public function FieldValidationRuleInterface::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.

14 methods override FieldValidationRuleInterface::addFieldValidationRule()
BlacklistFieldValidationRule::addFieldValidationRule in src/Plugin/FieldValidationRule/BlacklistFieldValidationRule.php
Applies a field_validation_rule to the field_validation_rule_set.
DateRangeFieldValidationRule::addFieldValidationRule in src/Plugin/FieldValidationRule/DateRangeFieldValidationRule.php
Applies a field_validation_rule to the field_validation_rule_set.
EmailFieldValidationRule::addFieldValidationRule in src/Plugin/FieldValidationRule/EmailFieldValidationRule.php
Applies a field_validation_rule to the field_validation_rule_set.
IntegerFieldValidationRule::addFieldValidationRule in src/Plugin/FieldValidationRule/IntegerFieldValidationRule.php
Applies a field_validation_rule to the field_validation_rule_set.
IpFieldValidationRule::addFieldValidationRule in src/Plugin/FieldValidationRule/IpFieldValidationRule.php
Applies a field_validation_rule to the field_validation_rule_set.

... See full list

File

src/FieldValidationRuleInterface.php, line 31

Class

FieldValidationRuleInterface
Defines the interface for Field Validation.

Namespace

Drupal\field_validation

Code

public function addFieldValidationRule(FieldValidationRuleSetInterface $field_validation_rule_set);