Barryvdh\Elfinder\ElfinderController::getViewVars PHP Method

getViewVars() protected method

protected getViewVars ( )
    protected function getViewVars()
    {
        $dir = 'packages/barryvdh/' . $this->package;
        $locale = str_replace("-", "_", $this->app->config->get('app.locale'));
        if (!file_exists($this->app['path.public'] . "/{$dir}/js/i18n/elfinder.{$locale}.js")) {
            $locale = false;
        }
        $csrf = true;
        return compact('dir', 'locale', 'csrf');
    }