original_string: public function get_primaries_langs(){
      $uid_languages =  self::get_appui_option_id('languages');
      $languages = options::get_instance()->full_tree($uid_languages);
      $primaries = array_values(array_filter($languages['items'], function($v) {
        return !empty($v['primary']);
      }));
      return $primaries;
    }
code: public function get_primaries_langs(){
      $uid_languages =  self::get_appui_option_id('languages');
      $languages = options::get_instance()->full_tree($uid_languages);
      $primaries = array_values(array_filter($languages['items'], function($v) {
        return !empty($v['primary']);
      }));
      return $primaries;
    }
code_tokens: public function get_primaries_langs ( ) { $ uid_languages = self :: get_appui_option_id ( 'languages' ) ; $ languages = options :: get_instance ( ) -> full_tree ( $ uid_languages ) ; $ primaries = array_values ( array_filter ( $ languages [ 'items' ] , function ( $ v ) { return ! empty ( $ v [ 'primary' ] ) ; } ) ) ; return $ primaries ; }
docstring: Gets primaries langs from option
  
  @return void
docstring_tokens: Gets primaries langs from option