You are here

protected function LingotekTargetTrait::getDestinationWithQueryArray in Lingotek Translation 3.7.x

Same name and namespace in other branches
  1. 4.0.x src/Element/LingotekTargetTrait.php \Drupal\lingotek\Element\LingotekTargetTrait::getDestinationWithQueryArray()
  2. 3.6.x src/Element/LingotekTargetTrait.php \Drupal\lingotek\Element\LingotekTargetTrait::getDestinationWithQueryArray()
  3. 3.8.x src/Element/LingotekTargetTrait.php \Drupal\lingotek\Element\LingotekTargetTrait::getDestinationWithQueryArray()

Get a destination query with the current uri.

Return value

array A valid query array for the Url construction.

4 calls to LingotekTargetTrait::getDestinationWithQueryArray()
LingotekTargetStatuses::getSecondaryTargetActionUrlsForConfigMapper in src/Element/LingotekTargetStatuses.php
Get secondary target actions, which will be shown when expanded.
LingotekTargetStatuses::getTargetActionUrlForUI in src/Element/LingotekTargetStatuses.php
LingotekTargetTrait::getSecondaryTargetActionUrls in src/Element/LingotekTargetTrait.php
Get secondary target actions, which will be shown when expanded.
LingotekTargetTrait::getTargetActionUrl in src/Element/LingotekTargetTrait.php
Get the target action url based on the source status.

File

src/Element/LingotekTargetTrait.php, line 256

Class

LingotekTargetTrait
Trait for lingotek_target_status and lingotek_target_statuses reuse.

Namespace

Drupal\lingotek\Element

Code

protected function getDestinationWithQueryArray() {
  return [
    'destination' => \Drupal::request()
      ->getRequestUri(),
  ];
}