function ContentTranslationUITestBase::getFormSubmitAction
Same name in this branch
- 8.9.x core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getFormSubmitAction()
Same name in other branches
- 9 core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getFormSubmitAction()
- 10 core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getFormSubmitAction()
- 11.x 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.
6 calls to ContentTranslationUITestBase::getFormSubmitAction()
- ContentTranslationUITestBase::doTestAuthoringInfo in core/
modules/ content_translation/ src/ Tests/ ContentTranslationUITestBase.php - Tests the translation authoring information.
- ContentTranslationUITestBase::doTestChangedTimeAfterSaveWithoutChanges in core/
modules/ content_translation/ src/ Tests/ ContentTranslationUITestBase.php - Test the changed time after API and FORM save without changes.
- ContentTranslationUITestBase::doTestOutdatedStatus in core/
modules/ content_translation/ src/ Tests/ ContentTranslationUITestBase.php - Tests up-to-date status tracking.
- ContentTranslationUITestBase::doTestPublishedStatus in core/
modules/ content_translation/ src/ Tests/ ContentTranslationUITestBase.php - Tests the translation publishing status.
- ContentTranslationUITestBase::doTestTranslationChanged in core/
modules/ content_translation/ src/ Tests/ ContentTranslationUITestBase.php - Tests the basic translation workflow.
File
-
core/
modules/ content_translation/ src/ Tests/ ContentTranslationUITestBase.php, line 439
Class
- ContentTranslationUITestBase
- Tests the Content Translation UI.
Namespace
Drupal\content_translation\TestsCode
protected function getFormSubmitAction(EntityInterface $entity, $langcode) {
return t('Save') . $this->getFormSubmitSuffix($entity, $langcode);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.