function ShortcutTranslationUITest::createEntity
Same name in other branches
- 9 core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php \Drupal\Tests\shortcut\Functional\ShortcutTranslationUITest::createEntity()
- 8.9.x core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php \Drupal\Tests\shortcut\Functional\ShortcutTranslationUITest::createEntity()
- 11.x core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php \Drupal\Tests\shortcut\Functional\ShortcutTranslationUITest::createEntity()
Overrides ContentTranslationTestBase::createEntity
File
-
core/
modules/ shortcut/ tests/ src/ Functional/ ShortcutTranslationUITest.php, line 59
Class
- ShortcutTranslationUITest
- Tests the shortcut translation UI.
Namespace
Drupal\Tests\shortcut\FunctionalCode
protected function createEntity($values, $langcode, $bundle_name = NULL) {
$values['link']['uri'] = 'internal:/user';
return parent::createEntity($values, $langcode, $bundle_name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.