You are here

public function KeywordId::acceptExposedInput in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/src/Plugin/views/filter/KeywordId.php \Drupal\bibcite_entity\Plugin\views\filter\KeywordId::acceptExposedInput()

Determines if the input from a filter should change the generated query.

Parameters

array $input: The exposed data for this view.

Return value

bool TRUE if the input for this filter should be included in the view query. FALSE otherwise.

Overrides InOperator::acceptExposedInput

File

modules/bibcite_entity/src/Plugin/views/filter/KeywordId.php, line 68

Class

KeywordId
Filter handler for keywords.

Namespace

Drupal\bibcite_entity\Plugin\views\filter

Code

public function acceptExposedInput($input) {
  $rc = parent::acceptExposedInput($input);
  if ($rc) {

    // If we have previously validated input, override.
    if (isset($this->validatedExposedInput)) {
      $this->value = $this->validatedExposedInput;
    }
  }
  return $rc;
}