You are here

protected function ContentTranslationUITestBase::getFormSubmitSuffix in Drupal 8

Same name in this branch
  1. 8 core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php \Drupal\content_translation\Tests\ContentTranslationUITestBase::getFormSubmitSuffix()
  2. 8 core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getFormSubmitSuffix()
Same name and namespace in other branches
  1. 9 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 447

Class

ContentTranslationUITestBase
Tests the Content Translation UI.

Namespace

Drupal\Tests\content_translation\Functional

Code

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