You are here

function varbase_configure_language_and_fetch_traslation in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.5

Same name and namespace in other branches
  1. 8.8 varbase.profile \varbase_configure_language_and_fetch_traslation()
  2. 8.4 varbase.profile \varbase_configure_language_and_fetch_traslation()
  3. 8.6 varbase.profile \varbase_configure_language_and_fetch_traslation()
  4. 8.7 varbase.profile \varbase_configure_language_and_fetch_traslation()
  5. 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 382
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();
}