protected function Selective::getOriginalOptions in Views Selective Filters 8
Returns the original filter value options, if provides an options list.
Return value
array|false The original filter option list, if available, or FALSE.
2 calls to Selective::getOriginalOptions()
- Selective::buildOptionsForm in src/
Plugin/ views/ filter/ Selective.php - Provide the basic form which calls through to subforms. If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.
- Selective::getOids in src/
Plugin/ views/ filter/ Selective.php - Returns a list of options for current view, only at runtime.
File
- src/
Plugin/ views/ filter/ Selective.php, line 458
Class
- Selective
- Views filter handler for selective values.
Namespace
Drupal\views_selective_filters\Plugin\views\filterCode
protected function getOriginalOptions() {
if (!isset($this->originalOptions)) {
// $this->originalOptions = FALSE;
// $class = $this->definition['proxy'];
// $original_filter = new $class([], '', []);
// if (is_callable(array($original_filter, 'getValueOptions'))) {
// $original_filter->set_definition($this->definition);
// $options = $original_filter->getValueOptions();
// // We store only non-empty array.
// if (is_array($options) && !empty($options)) {
// $this->originalOptions = $options;
// }
// else {
// $this->originalOptions = array();
// }
// }
}
return $this->originalOptions;
}