protected function delete($step)
    {
        if (isset($step->dsl['lang'])) {
            // BC
            $step->dsl['match'] = array('language_code' => $step->dsl['lang']);
        }
        $languageCollection = $this->matchLanguages('delete', $step);

        $this->setReferences($languageCollection, $step);

        $languageService = $this->repository->getContentLanguageService();

        foreach ($languageCollection as $language) {
            $languageService->deleteLanguage($language);
        }

        return $languageCollection;
    }
protected function delete($step)
    {
        if (isset($step->dsl['lang'])) {
            // BC
            $step->dsl['match'] = array('language_code' => $step->dsl['lang']);
        }
        $languageCollection = $this->matchLanguages('delete', $step);

        $this->setReferences($languageCollection, $step);

        $languageService = $this->repository->getContentLanguageService();

        foreach ($languageCollection as $language) {
            $languageService->deleteLanguage($language);
        }

        return $languageCollection;
    }
protected function delete ( $ step ) { if ( isset ( $ step -> dsl [ 'lang' ] ) ) { // BC $ step -> dsl [ 'match' ] = array ( 'language_code' => $ step -> dsl [ 'lang' ] ) ; } $ languageCollection = $ this -> matchLanguages ( 'delete' , $ step ) ; $ this -> setReferences ( $ languageCollection , $ step ) ; $ languageService = $ this -> repository -> getContentLanguageService ( ) ; foreach ( $ languageCollection as $ language ) { $ languageService -> deleteLanguage ( $ language ) ; } return $ languageCollection ; }
Handles the language delete migration action
Handles the language delete migration action