Form/TemplateForm.php
public function getLanguageList(ParameterBagInterface $bag)
    {
        $allLangs = Intl::getLanguageBundle()->getLanguageNames();

        return array_flip(array_intersect_key($allLangs, array_flip($bag->get('pd_mailer.active_language'))));
    }
public function getLanguageList(ParameterBagInterface $bag)
    {
        $allLangs = Intl::getLanguageBundle()->getLanguageNames();

        return array_flip(array_intersect_key($allLangs, array_flip($bag->get('pd_mailer.active_language'))));
    }
public function getLanguageList ( ParameterBagInterface $ bag ) { $ allLangs = Intl :: getLanguageBundle ( ) -> getLanguageNames ( ) ; return array_flip ( array_intersect_key ( $ allLangs , array_flip ( $ bag -> get ( 'pd_mailer.active_language' ) ) ) ) ; }
Return Active Language List.

@param ParameterBagInterface $bag

@return array|bool
Return Active Language List .