public function fillEmptySlugs($slugList, $postType, $defaultSlug, $id = 0)
    {
        $slugsFinal = array();
        foreach($slugList as $languageSlug => $slug){
            $tmpSlug = $slug;
            if($slug == "") {
                $tmpSlug = $defaultSlug;
            }
            $checkedSlug = parent::generateSlug($tmpSlug, $postType, 'postID', $languageSlug, $id, true, true);
            $slugsFinal[$languageSlug] = $checkedSlug;
        }
        return $slugsFinal;
    }
public function fillEmptySlugs($slugList, $postType, $defaultSlug, $id = 0)
    {
        $slugsFinal = array();
        foreach($slugList as $languageSlug => $slug){
            $tmpSlug = $slug;
            if($slug == "") {
                $tmpSlug = $defaultSlug;
            }
            $checkedSlug = parent::generateSlug($tmpSlug, $postType, 'postID', $languageSlug, $id, true, true);
            $slugsFinal[$languageSlug] = $checkedSlug;
        }
        return $slugsFinal;
    }
public function fillEmptySlugs ( $ slugList , $ postType , $ defaultSlug , $ id = 0 ) { $ slugsFinal = array ( ) ; foreach ( $ slugList as $ languageSlug => $ slug ) { $ tmpSlug = $ slug ; if ( $ slug == "" ) { $ tmpSlug = $ defaultSlug ; } $ checkedSlug = parent :: generateSlug ( $ tmpSlug , $ postType , 'postID' , $ languageSlug , $ id , true , true ) ; $ slugsFinal [ $ languageSlug ] = $ checkedSlug ; } return $ slugsFinal ; }
Slug shouldn't be empty.
Fills slug from default language to all other languages slugs.

@param  array  $slugList    list of slugs for each language
@param  string $postType    post type
@param  string $defaultSlug if slugs are empty use default slug
@param  int    $id          id of post if update
@return array generated slugs for each language
Slug shouldn t be empty . Fills slug from default language to all other languages slugs .