function language_test_module_preinstall
Same name in other branches
- 8.9.x core/modules/language/tests/language_test/language_test.module \language_test_module_preinstall()
- 10 core/modules/language/tests/language_test/language_test.module \language_test_module_preinstall()
Implements hook_module_preinstall().
File
-
core/
modules/ language/ tests/ language_test/ language_test.module, line 100
Code
function language_test_module_preinstall() {
\Drupal::state()->set('language_test.language_count_preinstall', count(\Drupal::languageManager()->getLanguages()));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.