public function FieldValidationRuleSetInterface::addFieldValidationRule in Field Validation 8
Saves a FieldValidationRule for this Field Validation ruleset.
Parameters
array $configuration: An array of FieldValidationRule configuration.
Return value
string The FieldValidationRule ID.
1 method overrides FieldValidationRuleSetInterface::addFieldValidationRule()
- FieldValidationRuleSet::addFieldValidationRule in src/
Entity/ FieldValidationRuleSet.php - Saves a FieldValidationRule for this Field Validation ruleset.
File
- src/
FieldValidationRuleSetInterface.php, line 62
Class
- FieldValidationRuleSetInterface
- Provides an interface defining a FieldValidationRuleSet entity.
Namespace
Drupal\field_validationCode
public function addFieldValidationRule(array $configuration);