You are here

public function LocaleSourcePluginUi::getSearchFormSubmittedParams in Translation Management Tool 8

Gets submitted search params.

Return value

array

2 calls to LocaleSourcePluginUi::getSearchFormSubmittedParams()
LocaleSourcePluginUi::overviewForm in sources/locale/src/LocaleSourcePluginUi.php
Builds the overview form for the source entities.
LocaleSourcePluginUi::overviewSearchFormPart in sources/locale/src/LocaleSourcePluginUi.php
Builds search form for entity sources overview.

File

sources/locale/src/LocaleSourcePluginUi.php, line 211

Class

LocaleSourcePluginUi
Locale source plugin UI.

Namespace

Drupal\tmgmt_locale

Code

public function getSearchFormSubmittedParams() {
  $params = array(
    'label' => NULL,
    'missing_target_language' => NULL,
    'context' => NULL,
  );
  if (isset($_GET['label'])) {
    $params['label'] = $_GET['label'];
  }
  if (isset($_GET['missing_target_language'])) {
    $params['missing_target_language'] = $_GET['missing_target_language'];
  }
  if (isset($_GET['context'])) {
    $params['context'] = $_GET['context'];
  }
  return $params;
}