You are here

protected function ContentTranslationUITestBase::getFormSubmitSuffix in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getFormSubmitSuffix()
  2. 10 core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getFormSubmitSuffix()

Returns appropriate submit button suffix based on translatability.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity being tested.

string $langcode: Language code for the form.

Return value

string Submit button suffix based on translatability.

1 call to ContentTranslationUITestBase::getFormSubmitSuffix()
ContentTranslationUITestBase::getFormSubmitAction in core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
Returns the form action value to be used to submit the entity form.
1 method overrides ContentTranslationUITestBase::getFormSubmitSuffix()
NodeTranslationUITest::getFormSubmitSuffix in core/modules/node/tests/src/Functional/NodeTranslationUITest.php
Returns appropriate submit button suffix based on translatability.

File

core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php, line 461

Class

ContentTranslationUITestBase
Tests the Content Translation UI.

Namespace

Drupal\Tests\content_translation\Functional

Code

protected function getFormSubmitSuffix(EntityInterface $entity, $langcode) {
  return '';
}