Add an error.
public addError ( string $messageCode, string | array $field = '*', integer | array $options = [] ) : |
||
$messageCode | string | The message translation code. If you add a message that starts with "@" then no translation will take place. |
$field | string | array | The name of the field to add or an array of fields if the error applies to more than one field. |
$options | integer | array | An array of additional information to add to the error entry or a numeric error code. |
Результат | Returns $this for fluent calls. |