src/Forms/FormField.php
public static function formatErrorMessage(array $error_message)
    {
        $msg = $error_message['msg'] ?? "";
        $context = $error_message['context'] ?? [];
        if (class_exists("Wedeto\I18n\I18nShortcut"))
        {
            return t($msg, $context);
        }

        return WF::fillPlaceholders($msg, $context);
    }
public static function formatErrorMessage(array $error_message)
    {
        $msg = $error_message['msg'] ?? "";
        $context = $error_message['context'] ?? [];
        if (class_exists("Wedeto\I18n\I18nShortcut"))
        {
            return t($msg, $context);
        }

        return WF::fillPlaceholders($msg, $context);
    }
public static function formatErrorMessage ( array $ error_message ) { $ msg = $ error_message [ 'msg' ] ?? "" ; $ context = $ error_message [ 'context' ] ?? [ ] ; if ( class_exists ( "Wedeto\I18n\I18nShortcut" ) ) { return t ( $ msg , $ context ) ; } return WF :: fillPlaceholders ( $ msg , $ context ) ; }
Format the error message into a single string

@return string The formatted error message
Format the error message into a single string