public function disableLanguage(Language $language)
    {
        $returnValue = $this->service->disableLanguage($language);
        $this->signalDispatcher->emit(
            new DisableLanguageSignal(
                array(
                    'languageId' => $language->id,
                )
            )
        );

        return $returnValue;
    }
public function disableLanguage(Language $language)
    {
        $returnValue = $this->service->disableLanguage($language);
        $this->signalDispatcher->emit(
            new DisableLanguageSignal(
                array(
                    'languageId' => $language->id,
                )
            )
        );

        return $returnValue;
    }
public function disableLanguage ( Language $ language ) { $ returnValue = $ this -> service -> disableLanguage ( $ language ) ; $ this -> signalDispatcher -> emit ( new DisableLanguageSignal ( array ( 'languageId' => $ language -> id , ) ) ) ; return $ returnValue ; }
Disables a language.

@throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException If user does not have access to content translations

@param \eZ\Publish\API\Repository\Values\Content\Language $language

@return \eZ\Publish\API\Repository\Values\Content\Language
Disables a language .