protected function removeActiveLanguages(LanguageRepositoryInterface $languageRepository)
    {
        try {
            $languages = $languageRepository->activeLanguages();
            foreach ($languages as $language) {
                $language->delete();
            }

            return true;
        } catch (\Exception $ex) {
            $this->errorMessage = "An error occoured during the removing of existing languages. The reported error is: " . $ex->getMessage();

            return false;
        }
    }
protected function removeActiveLanguages(LanguageRepositoryInterface $languageRepository)
    {
        try {
            $languages = $languageRepository->activeLanguages();
            foreach ($languages as $language) {
                $language->delete();
            }

            return true;
        } catch (\Exception $ex) {
            $this->errorMessage = "An error occoured during the removing of existing languages. The reported error is: " . $ex->getMessage();

            return false;
        }
    }
protected function removeActiveLanguages ( LanguageRepositoryInterface $ languageRepository ) { try { $ languages = $ languageRepository -> activeLanguages ( ) ; foreach ( $ languages as $ language ) { $ language -> delete ( ) ; } return true ; } catch ( \ Exception $ ex ) { $ this -> errorMessage = "An error occoured during the removing of existing languages. The reported error is: " . $ ex -> getMessage ( ) ; return false ; } }
Removes the active languages

@param  \RedKiteLabs\RedKiteCms\RedKiteCmsBundle\Core\Repository\Repository\LanguageRepositoryInterface $languageRepository
@return boolean
Removes the active languages