You are here

public function TaxonomyIndexMachineName::getValueOptions in Taxonomy Machine Name 8

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

src/Plugin/views/filter/TaxonomyIndexMachineName.php, line 99

Class

TaxonomyIndexMachineName
Filter by term id.

Namespace

Drupal\taxonomy_machine_name\Plugin\views\filter

Code

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