protected function MenuLinkContentTranslationUITest::createEntity in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/menu_link_content/src/Tests/MenuLinkContentTranslationUITest.php \Drupal\menu_link_content\Tests\MenuLinkContentTranslationUITest::createEntity()
Creates the entity to be translated.
Parameters
array $values: An array of initial values for the entity.
string $langcode: The initial language code of the entity.
string $bundle_name: (optional) The entity bundle, if the entity uses bundles. Defaults to NULL. If left NULL, $this->bundle will be used.
Return value
string The entity id.
Overrides ContentTranslationTestBase::createEntity
1 call to MenuLinkContentTranslationUITest::createEntity()
- MenuLinkContentTranslationUITest::testTranslationLinkTheme in core/
modules/ menu_link_content/ src/ Tests/ MenuLinkContentTranslationUITest.php - Tests that translation page inherits admin status of edit page.
File
- core/
modules/ menu_link_content/ src/ Tests/ MenuLinkContentTranslationUITest.php, line 63 - Contains \Drupal\menu_link_content\Tests\MenuLinkContentTranslationUITest.
Class
- MenuLinkContentTranslationUITest
- Tests the menu link content translation UI.
Namespace
Drupal\menu_link_content\TestsCode
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);
}