You are here

protected function LocaleConfigSubscriberForeignTest::defaultLanguageData in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/locale/src/Tests/LocaleConfigSubscriberForeignTest.php \Drupal\locale\Tests\LocaleConfigSubscriberForeignTest::defaultLanguageData()

Provides the data for setting the default language on the container.

Return value

array The data array for the default language.

Overrides KernelTestBase::defaultLanguageData

File

core/modules/locale/src/Tests/LocaleConfigSubscriberForeignTest.php, line 23
Contains \Drupal\locale\Tests\LocaleConfigSubscriberForeignTest.

Class

LocaleConfigSubscriberForeignTest
Tests default configuration handling with a foreign default language.

Namespace

Drupal\locale\Tests

Code

protected function defaultLanguageData() {
  $data = Language::$defaultValues;
  $data['id'] = 'hu';
  $data['name'] = 'Hungarian';
  return $data;
}