You are here

protected function LingotekTestBase::getDestination in Lingotek Translation 3.1.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::getDestination()
  2. 4.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::getDestination()
  3. 3.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::getDestination()
  4. 3.2.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::getDestination()
  5. 3.3.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::getDestination()
  6. 3.4.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::getDestination()
  7. 3.5.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::getDestination()
  8. 3.6.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::getDestination()
  9. 3.7.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::getDestination()
  10. 3.8.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::getDestination()
4 methods override LingotekTestBase::getDestination()
LingotekContentTypeBulkTranslationTest::getDestination in tests/src/Functional/LingotekContentTypeBulkTranslationTest.php
LingotekFieldBodyBulkTranslationTest::getDestination in tests/src/Functional/LingotekFieldBodyBulkTranslationTest.php
LingotekNodeTranslationTest::getDestination in tests/src/Functional/LingotekNodeTranslationTest.php
LingotekSystemSiteBulkTranslationTest::getDestination in tests/src/Functional/LingotekSystemSiteBulkTranslationTest.php

File

tests/src/Functional/LingotekTestBase.php, line 174

Class

LingotekTestBase
Base class for Lingotek test. Performs authorization of the account.

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function getDestination($entity_type_id = 'node', $prefix = NULL) {
  $basepath = \Drupal::request()
    ->getBasePath();
  return '?destination=' . $basepath . $this
    ->getContentBulkManagementFormUrl($entity_type_id, $prefix);
}