function ContentTranslationUITestBase::getFormSubmitActionForNewTranslation
Same name in other branches
- 8.9.x core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php \Drupal\content_translation\Tests\ContentTranslationUITestBase::getFormSubmitActionForNewTranslation()
- 8.9.x core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getFormSubmitActionForNewTranslation()
- 10 core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getFormSubmitActionForNewTranslation()
- 11.x core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getFormSubmitActionForNewTranslation()
Returns the form action value when submitting a new translation.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity being tested.
string $langcode: Language code for the form.
Return value
string Name of the button to hit.
1 call to ContentTranslationUITestBase::getFormSubmitActionForNewTranslation()
- ContentTranslationUITestBase::doTestBasicTranslation in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationUITestBase.php - Tests the basic translation workflow.
File
-
core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationUITestBase.php, line 430
Class
- ContentTranslationUITestBase
- Tests the Content Translation UI.
Namespace
Drupal\Tests\content_translation\FunctionalCode
protected function getFormSubmitActionForNewTranslation(EntityInterface $entity, $langcode) {
$entity->addTranslation($langcode, $entity->toArray());
return $this->getFormSubmitAction($entity, $langcode);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.