function varbase_configure_language_and_fetch_traslation in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.7
Same name and namespace in other branches
- 8.8 varbase.profile \varbase_configure_language_and_fetch_traslation()
- 8.4 varbase.profile \varbase_configure_language_and_fetch_traslation()
- 8.5 varbase.profile \varbase_configure_language_and_fetch_traslation()
- 8.6 varbase.profile \varbase_configure_language_and_fetch_traslation()
- 9.0.x varbase.profile \varbase_configure_language_and_fetch_traslation()
Batch function to add selected langauges then fetch all traslation.
Parameters
string|array $language_code: Language code to install and fetch all traslation.
1 string reference to 'varbase_configure_language_and_fetch_traslation'
- varbase_configure_multilingual in ./
varbase.profile - Batch job to configure multilingual components.
File
- ./
varbase.profile, line 385 - Enables modules and site configuration for a Varbase site installation.
Code
function varbase_configure_language_and_fetch_traslation($language_code) {
ConfigurableLanguage::createFromLangcode($language_code)
->save();
}