Same name and namespace in other branches
- 8.9.x core/modules/file/src/Plugin/views/filter/Status.php \Drupal\file\Plugin\views\filter\Status::getValueOptions()
- 9 core/modules/file/src/Plugin/views/filter/Status.php \Drupal\file\Plugin\views\filter\Status::getValueOptions()
Gets the value options.
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
- core/
modules/ file/ src/ Plugin/ views/ filter/ Status.php, line 17
Class
Namespace
Drupal\file\Plugin\views\filterCode
public function getValueOptions() {
if (!isset($this->valueOptions)) {
$this->valueOptions = [
0 => $this
->t('Temporary'),
FileInterface::STATUS_PERMANENT => $this
->t('Permanent'),
];
}
return $this->valueOptions;
}