Redaxscript\Detector\Language::_autorun PHP Method

_autorun() protected method

automate run
Since: 2.1.0
protected _autorun ( )
    protected function _autorun()
    {
        $dbStatus = $this->_registry->get('dbStatus');
        $lastTable = $this->_registry->get('lastTable');
        $lastId = $this->_registry->get('lastId');
        /* detect language */
        $this->_detect(['query' => $this->_request->getQuery('l'), 'session' => $this->_request->getSession('language'), 'contents' => $lastTable ? Db::forTablePrefix($lastTable)->where('id', $lastId)->findOne()->language : null, 'settings' => $dbStatus === 2 ? Db::getSetting('language') : null, 'browser' => substr($this->_request->getServer('HTTP_ACCEPT_LANGUAGE'), 0, 2), 'fallback' => 'en'], 'language', 'languages/' . $this->_filePlaceholder . '.json');
    }
Language