function 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. 8.9.x core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php \Drupal\content_translation\Tests\ContentTranslationUITestBase::getFormSubmitSuffix()
  3. 8.9.x core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getFormSubmitSuffix()
  4. 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 '';
}

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