function UserTranslationUITest::getNewEntityValues

Same name in other branches
  1. 8.9.x core/modules/user/tests/src/Functional/UserTranslationUITest.php \Drupal\Tests\user\Functional\UserTranslationUITest::getNewEntityValues()
  2. 10 core/modules/user/tests/src/Functional/UserTranslationUITest.php \Drupal\Tests\user\Functional\UserTranslationUITest::getNewEntityValues()
  3. 11.x core/modules/user/tests/src/Functional/UserTranslationUITest.php \Drupal\Tests\user\Functional\UserTranslationUITest::getNewEntityValues()

Overrides ContentTranslationUITestBase::getNewEntityValues

1 call to UserTranslationUITest::getNewEntityValues()
UserTranslationUITest::testTranslatedUserDeletion in core/modules/user/tests/src/Functional/UserTranslationUITest.php
Tests translated user deletion.

File

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

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.