$entity->
getEntityTypeId() =>
$id,
'source' => 'en',
'target' => 'it',
],
[ 'language' => ConfigurableLanguage::
load('it'
),
'absolute' => FALSE,
] );
$this->
drupalGet($add_translation_url);
$this->
assertFlagWidget();
$edit =
[ 'title[0][value]' => 'Test 1.2 IT',
'moderation_state[0][state]' => 'published',
];
$this->
submitForm($edit, 'Save (this translation)'
);
// Add a published French translation.
$add_translation_url = Url::
fromRoute("entity.{
$this->entityTypeId
}.content_translation_add",
[ $entity->
getEntityTypeId() =>
$id,
'source' => 'en',