protected function getLanguageNames($language = null)
    {
        $event = new LoadLanguageFileEvent('languages', $language, true);
        $this->eventDispatcher->dispatch(ContaoEvents::SYSTEM_LOAD_LANGUAGE_FILE, $event);

        return $GLOBALS['TL_LANG']['LNG'];
    }
protected function getLanguageNames($language = null)
    {
        $event = new LoadLanguageFileEvent('languages', $language, true);
        $this->eventDispatcher->dispatch(ContaoEvents::SYSTEM_LOAD_LANGUAGE_FILE, $event);

        return $GLOBALS['TL_LANG']['LNG'];
    }
protected function getLanguageNames ( $ language = null ) { $ event = new LoadLanguageFileEvent ( 'languages' , $ language , true ) ; $ this -> eventDispatcher -> dispatch ( ContaoEvents :: SYSTEM_LOAD_LANGUAGE_FILE , $ event ) ; return $ GLOBALS [ 'TL_LANG' ] [ 'LNG' ] ; }
Retrieve all language names in the given language.

@param string $language The language key.

@return string[]

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)
Retrieve all language names in the given language .