Pagekit\Intl\IntlModule::getData PHP Метод

getData() защищенный Метод

protected getData ( string $name, string | null $locale = null ) : array | null
$name string
$locale string | null
Результат array | null
    protected function getData($name, $locale = null)
    {
        $locale = $locale ?: $this->getLocale();
        if (!($data = $this->parse("app/system/languages/{$locale}/{$name}.json"))) {
            $data = $this->parse("app/system/languages/en_GB/{$name}.json");
        }
        return $data;
    }