You are here

protected function TranslationTargetLanguageFilter::setExposedValue in Translation Views 8

Special setter for exposed value in views.

1 call to TranslationTargetLanguageFilter::setExposedValue()
TranslationTargetLanguageFilter::valueForm in src/Plugin/views/filter/TranslationTargetLanguageFilter.php
Options form subform for setting options.

File

src/Plugin/views/filter/TranslationTargetLanguageFilter.php, line 323

Class

TranslationTargetLanguageFilter
Provides filtering by translation target language.

Namespace

Drupal\translation_views\Plugin\views\filter

Code

protected function setExposedValue($identifier, $value, FormStateInterface $form_state) {
  $user_input = $form_state
    ->getUserInput();
  $user_input[$identifier] = $value;
  $form_state
    ->setUserInput($user_input);
  $this->view
    ->setExposedInput($user_input);
}