You are here

protected function UserTranslationUITest::getNewEntityValues in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/tests/src/Functional/UserTranslationUITest.php \Drupal\Tests\user\Functional\UserTranslationUITest::getNewEntityValues()
  2. 9 core/modules/user/tests/src/Functional/UserTranslationUITest.php \Drupal\Tests\user\Functional\UserTranslationUITest::getNewEntityValues()

File

core/modules/user/tests/src/Functional/UserTranslationUITest.php, line 68

Class

UserTranslationUITest
Tests the User Translation UI.

Namespace

Drupal\Tests\user\Functional

Code

protected function getNewEntityValues($langcode) {

  // User name is not translatable hence we use a fixed value.
  return [
    'name' => $this->name,
  ] + parent::getNewEntityValues($langcode);
}