You are here

protected function ShortcutTranslationUITest::createEntity in Drupal 10

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

File

core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php, line 59

Class

ShortcutTranslationUITest
Tests the shortcut translation UI.

Namespace

Drupal\Tests\shortcut\Functional

Code

protected function createEntity($values, $langcode, $bundle_name = NULL) {
  $values['link']['uri'] = 'internal:/user';
  return parent::createEntity($values, $langcode, $bundle_name);
}