We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7868daf commit cdc01efCopy full SHA for cdc01ef
system/Validation/ValidationInterface.php
@@ -99,4 +99,19 @@ public function reset(): ValidationInterface;
99
* @return array
100
*/
101
public function loadRuleGroup(?string $group = null);
102
+
103
+ /**
104
+ * Checks to see if an error exists for the given field.
105
+ */
106
+ public function hasError(string $field): bool;
107
108
109
+ * Returns the rendered HTML of the errors as defined in $template.
110
111
+ public function listErrors(string $template = 'list'): string;
112
113
114
+ * Displays a single error in formatted HTML as defined in the $template view.
115
116
+ public function showError(string $field, string $template = 'single'): string;
117
}
0 commit comments