Errors are stored with either a message or a translation code.
This method will look at both to determine the full message.
public static errorMessage ( array $error ) : string | ||
$error | array | The error array. |
return | string | Returns the message from the error. |