abstract protected function FieldValidationRuleFormBase::prepareFieldValidationRule in Field Validation 8
Converts a field_validation_rule ID into an object.
Parameters
string $field_validation_rule: The field_validation_rule ID.
Return value
\Drupal\field_validation\FieldValidationRuleInterface The field_validation_rule object.
1 call to FieldValidationRuleFormBase::prepareFieldValidationRule()
2 methods override FieldValidationRuleFormBase::prepareFieldValidationRule()
- FieldValidationRuleAddForm::prepareFieldValidationRule in src/
Form/ FieldValidationRuleAddForm.php - Converts a field_validation_rule ID into an object.
- FieldValidationRuleEditForm::prepareFieldValidationRule in src/
Form/ FieldValidationRuleEditForm.php - Converts a field_validation_rule ID into an object.
File
- src/
Form/ FieldValidationRuleFormBase.php, line 287
Class
- FieldValidationRuleFormBase
- Provides a base form for FieldValidationRule.
Namespace
Drupal\field_validation\FormCode
protected abstract function prepareFieldValidationRule($field_validation_rule);