public function FieldValidationRuleSet::deleteFieldValidationRule in Field Validation 8
Deletes a field_validation_rule from this FieldValidationRuleSet.
Parameters
\Drupal\field_validation\FieldValidationRuleInterface $field_validation_rule: The FieldValidationRule object.
Return value
$this
Overrides FieldValidationRuleSetInterface::deleteFieldValidationRule
File
- src/
Entity/ FieldValidationRuleSet.php, line 130
Class
- FieldValidationRuleSet
- Defines a field validation rule set configuration entity.
Namespace
Drupal\field_validation\EntityCode
public function deleteFieldValidationRule(FieldValidationRuleInterface $field_validation_rule) {
$this
->getFieldValidationRules()
->removeInstanceId($field_validation_rule
->getUuid());
$this
->save();
return $this;
}