public function FieldValidationRuleBase::setFieldName in Field Validation 8
Sets the field name for this field_validation_rule.
Parameters
int $field_name: The field name for this field_validation_rule.
Return value
$this
Overrides FieldValidationRuleInterface::setFieldName
File
- src/
FieldValidationRuleBase.php, line 230
Class
- FieldValidationRuleBase
- Provides a base class for FieldValidationRule.
Namespace
Drupal\field_validationCode
public function setFieldName($field_name) {
$this->field_name = $field_name;
return $this;
}