function ContentTranslationUITestBase::getFormSubmitSuffix

Same name in this branch
  1. 8.9.x core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getFormSubmitSuffix()
Same name 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()
  3. 11.x 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/src/Tests/ContentTranslationUITestBase.php
Returns the form action value to be used to submit the entity form.

File

core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php, line 454

Class

ContentTranslationUITestBase
Tests the Content Translation UI.

Namespace

Drupal\content_translation\Tests

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.