public function Status::getValueOptions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/file/src/Plugin/views/filter/Status.php \Drupal\file\Plugin\views\filter\Status::getValueOptions()
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
Return the stored values in $this->valueOptions if someone expects it.
Overrides InOperator::getValueOptions
File
- core/
modules/ file/ src/ Plugin/ views/ filter/ Status.php, line 21 - Contains \Drupal\file\Plugin\views\filter\Status.
Class
- Status
- Filter by file status.
Namespace
Drupal\file\Plugin\views\filterCode
public function getValueOptions() {
if (!isset($this->valueOptions)) {
$this->valueOptions = _views_file_status();
}
}