You are here

protected function LingotekSourceStatus::getDestinationWithQueryArray in Lingotek Translation 3.5.x

Same name and namespace in other branches
  1. 8.2 src/Element/LingotekSourceStatus.php \Drupal\lingotek\Element\LingotekSourceStatus::getDestinationWithQueryArray()
  2. 4.0.x src/Element/LingotekSourceStatus.php \Drupal\lingotek\Element\LingotekSourceStatus::getDestinationWithQueryArray()
  3. 3.0.x src/Element/LingotekSourceStatus.php \Drupal\lingotek\Element\LingotekSourceStatus::getDestinationWithQueryArray()
  4. 3.1.x src/Element/LingotekSourceStatus.php \Drupal\lingotek\Element\LingotekSourceStatus::getDestinationWithQueryArray()
  5. 3.2.x src/Element/LingotekSourceStatus.php \Drupal\lingotek\Element\LingotekSourceStatus::getDestinationWithQueryArray()
  6. 3.3.x src/Element/LingotekSourceStatus.php \Drupal\lingotek\Element\LingotekSourceStatus::getDestinationWithQueryArray()
  7. 3.4.x src/Element/LingotekSourceStatus.php \Drupal\lingotek\Element\LingotekSourceStatus::getDestinationWithQueryArray()
  8. 3.6.x src/Element/LingotekSourceStatus.php \Drupal\lingotek\Element\LingotekSourceStatus::getDestinationWithQueryArray()
  9. 3.7.x src/Element/LingotekSourceStatus.php \Drupal\lingotek\Element\LingotekSourceStatus::getDestinationWithQueryArray()
  10. 3.8.x src/Element/LingotekSourceStatus.php \Drupal\lingotek\Element\LingotekSourceStatus::getDestinationWithQueryArray()

Get a destination query with the current uri.

Return value

array A valid query array for the Url construction.

2 calls to LingotekSourceStatus::getDestinationWithQueryArray()
LingotekSourceStatus::getSourceActionUrl in src/Element/LingotekSourceStatus.php
Get the source action url based on the source status.
LingotekSourceStatus::getSourceActionUrlForUI in src/Element/LingotekSourceStatus.php

File

src/Element/LingotekSourceStatus.php, line 190

Class

LingotekSourceStatus
Provides a Lingotek source status element.

Namespace

Drupal\lingotek\Element

Code

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