You are here

function language_test_module_preinstall in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/language/tests/language_test/language_test.module \language_test_module_preinstall()
  2. 9 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
Mock module for language layer tests.

Code

function language_test_module_preinstall() {
  \Drupal::state()
    ->set('language_test.language_count_preinstall', count(\Drupal::languageManager()
    ->getLanguages()));
}