public function FieldValidationRuleInterface::setWeight in Field Validation 8
Sets the weight for this field_validation_rule.
Parameters
int $weight: The weight for this field_validation_rule.
Return value
$this
1 method overrides FieldValidationRuleInterface::setWeight()
- FieldValidationRuleBase::setWeight in src/
FieldValidationRuleBase.php - Sets the weight for this field_validation_rule.
File
- src/
FieldValidationRuleInterface.php, line 86
Class
- FieldValidationRuleInterface
- Defines the interface for Field Validation.
Namespace
Drupal\field_validationCode
public function setWeight($weight);