You are here

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

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

Get a destination query with the current uri.

Return value

array A valid query array for the Url construction.

2 calls to LingotekTargetStatuses::getDestinationWithQueryArray()
LingotekTargetStatuses::getTargetActionUrl in src/Element/LingotekTargetStatuses.php
Get the target action url based on the source status.
LingotekTargetStatuses::getTargetActionUrlForUI in src/Element/LingotekTargetStatuses.php

File

src/Element/LingotekTargetStatuses.php, line 332

Class

LingotekTargetStatuses
Provides a Lingotek target status element.

Namespace

Drupal\lingotek\Element

Code

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