You are here

protected function ContentTranslationUITestBase::getFormSubmitSuffix in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php \Drupal\content_translation\Tests\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.
1 method overrides ContentTranslationUITestBase::getFormSubmitSuffix()
NodeTranslationUITest::getFormSubmitSuffix in core/modules/node/src/Tests/NodeTranslationUITest.php
Returns appropriate submit button suffix based on translatability.

File

core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php, line 419
Contains \Drupal\content_translation\Tests\ContentTranslationUITestBase.

Class

ContentTranslationUITestBase
Tests the Content Translation UI.

Namespace

Drupal\content_translation\Tests

Code

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