public function EntityReferenceFilterViewResult::getValueOptions in Views Reference Filter 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
3 calls to EntityReferenceFilterViewResult::getValueOptions()
- EntityReferenceFilterViewResult::adminSummary in src/
Plugin/ views/ filter/ EntityReferenceFilterViewResult.php - Display the filter on the administrative summary
- EntityReferenceFilterViewResult::query in src/
Plugin/ views/ filter/ EntityReferenceFilterViewResult.php - Add this filter to the query.
- EntityReferenceFilterViewResult::valueForm in src/
Plugin/ views/ filter/ EntityReferenceFilterViewResult.php - Options form subform for setting options.
File
- src/
Plugin/ views/ filter/ EntityReferenceFilterViewResult.php, line 186
Class
- EntityReferenceFilterViewResult
- Filter by entity id using items got from the another view..
Namespace
Drupal\entityreference_filter\Plugin\views\filterCode
public function getValueOptions() {
if (isset($this->valueOptions)) {
return $this->valueOptions;
}
$this->valueOptions = $this
->getConfiguredViewsOptions();
return $this->valueOptions;
}