function MediaTranslationUITest::getNewEntityValues

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

Overrides ContentTranslationUITestBase::getNewEntityValues

File

core/modules/media/tests/src/Functional/MediaTranslationUITest.php, line 96

Class

MediaTranslationUITest
Tests the Media Translation UI.

Namespace

Drupal\Tests\media\Functional

Code

protected function getNewEntityValues($langcode) {
    return [
        'name' => [
            [
                'value' => $this->randomMachineName(),
            ],
        ],
        'field_media_test' => [
            [
                'value' => $this->randomMachineName(),
            ],
        ],
    ] + parent::getNewEntityValues($langcode);
}

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