src/Sluggable/SluggableTrait.php
protected function storeSlugForLanguageId()
    {
        /** @var CmsModel|SluggableTrait $this */

        $config      = $this->getSluggableConfig();
        $languageKey = array_get($config, 'language_key');
        $localeKey   = array_get($config, 'locale_key');

        if ($languageKey) {
            return $this->getAttribute($languageKey);
        }

        if ($localeKey) {
            return $this->lookupLanguageIdForLocale( $this->getAttribute($localeKey) );
        }

        return null;
    }
protected function storeSlugForLanguageId()
    {
        /** @var CmsModel|SluggableTrait $this */

        $config      = $this->getSluggableConfig();
        $languageKey = array_get($config, 'language_key');
        $localeKey   = array_get($config, 'locale_key');

        if ($languageKey) {
            return $this->getAttribute($languageKey);
        }

        if ($localeKey) {
            return $this->lookupLanguageIdForLocale( $this->getAttribute($localeKey) );
        }

        return null;
    }
protected function storeSlugForLanguageId ( ) { /** @var CmsModel|SluggableTrait $this */ $ config = $ this -> getSluggableConfig ( ) ; $ languageKey = array_get ( $ config , 'language_key' ) ; $ localeKey = array_get ( $ config , 'locale_key' ) ; if ( $ languageKey ) { return $ this -> getAttribute ( $ languageKey ) ; } if ( $ localeKey ) { return $ this -> lookupLanguageIdForLocale ( $ this -> getAttribute ( $ localeKey ) ) ; } return null ; }
Returns the language_id to store slugs for

@return string
Returns the language_id to store slugs for