Same name and namespace in other branches
  1. 8.9.x core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php \Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTid::getValueOptions()
  2. 9 core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php \Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTid::getValueOptions()

Gets the value options.

Child classes should be used to override this function and set the 'value options', unless 'options callback' is defined as a valid function or static public method to generate these values.

This can use a guard to be used to reduce database hits as much as possible.

Return value

array|null The stored values from $this->valueOptions.

Overrides InOperator::getValueOptions

File

core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php, line 108

Class

TaxonomyIndexTid

Namespace

Drupal\taxonomy\Plugin\views\filter

Code

public function getValueOptions() {
  return $this->valueOptions;
}