protected function ContentTranslationUITestBase::getFormSubmitAction in Drupal 10
Same name and namespace in other branches
- 8 core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getFormSubmitAction()
- 9 core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getFormSubmitAction()
Returns the form action value to be used to submit the entity form.
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.
File
- core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationUITestBase.php, line 446
Class
- ContentTranslationUITestBase
- Tests the Content Translation UI.
Namespace
Drupal\Tests\content_translation\FunctionalCode
protected function getFormSubmitAction(EntityInterface $entity, $langcode) {
return 'Save' . $this
->getFormSubmitSuffix($entity, $langcode);
}