You are here

protected function LingotekTargetStatus::getDestinationWithQueryArray in Lingotek Translation 3.3.x

Same name and namespace in other branches
  1. 8.2 src/Element/LingotekTargetStatus.php \Drupal\lingotek\Element\LingotekTargetStatus::getDestinationWithQueryArray()
  2. 3.0.x src/Element/LingotekTargetStatus.php \Drupal\lingotek\Element\LingotekTargetStatus::getDestinationWithQueryArray()
  3. 3.1.x src/Element/LingotekTargetStatus.php \Drupal\lingotek\Element\LingotekTargetStatus::getDestinationWithQueryArray()
  4. 3.2.x src/Element/LingotekTargetStatus.php \Drupal\lingotek\Element\LingotekTargetStatus::getDestinationWithQueryArray()
  5. 3.4.x src/Element/LingotekTargetStatus.php \Drupal\lingotek\Element\LingotekTargetStatus::getDestinationWithQueryArray()
  6. 3.5.x src/Element/LingotekTargetStatus.php \Drupal\lingotek\Element\LingotekTargetStatus::getDestinationWithQueryArray()

Get a destination query with the current uri.

Return value

array A valid query array for the Url construction.

1 call to LingotekTargetStatus::getDestinationWithQueryArray()
LingotekTargetStatus::getTargetActionUrl in src/Element/LingotekTargetStatus.php
Get the target action url based on the source status.

File

src/Element/LingotekTargetStatus.php, line 178

Class

LingotekTargetStatus
Provides a Lingotek target status element.

Namespace

Drupal\lingotek\Element

Code

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