You are here

protected function MenuLinkContentTranslationUITest::createEntity in Drupal 10

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

File

core/modules/menu_link_content/tests/src/Functional/MenuLinkContentTranslationUITest.php, line 63

Class

MenuLinkContentTranslationUITest
Tests the menu link content translation UI.

Namespace

Drupal\Tests\menu_link_content\Functional

Code

protected function createEntity($values, $langcode, $bundle_name = NULL) {
  $values['menu_name'] = 'tools';
  $values['link']['uri'] = 'internal:/admin/structure/menu';
  $values['title'] = 'Test title';
  return parent::createEntity($values, $langcode, $bundle_name);
}