public function EREFNodeTitles::getValueOptions in Entity Reference Exposed Filters 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/ EREFNodeTitles.php, line 290
Class
- EREFNodeTitles
- Filters by given list of related content title options.
Namespace
Drupal\entity_reference_exposed_filters\Plugin\views\filterCode
public function getValueOptions() {
// Generate the values from the helper function.
// TODO? - regenerate the list every time the relationship field is changed.
$this->valueOptions = $this
->generateOptions();
return $this->valueOptions;
}