ExtJsResultMapper example



    /** * Map result object to extjs array format * * @param ValidResult|FinishResult|ErrorResult $result * * @return array<string, bool|int|string> */
    private function mapResult($result): array
    {
        $mapper = new ExtJsResultMapper();

        return $mapper->toExtJs($result);
    }

    private function getUserLanguage(stdClass $user): string
    {
        $locale = $user->locale;
        $locale = strtolower($locale->getLocale());

        return substr($locale, 0, 2);
    }

    
Home | Imprint | This part of the site doesn't use cookies.