Status.php in Drupal 8
Same filename in this branch
Same filename and directory in other branches
Namespace
Drupal\file\Plugin\views\filterFile
core/modules/file/src/Plugin/views/filter/Status.phpView source
<?php
namespace Drupal\file\Plugin\views\filter;
use Drupal\views\Plugin\views\filter\InOperator;
/**
* Filter by file status.
*
* @ingroup views_filter_handlers
*
* @ViewsFilter("file_status")
*/
class Status extends InOperator {
public function getValueOptions() {
if (!isset($this->valueOptions)) {
$this->valueOptions = _views_file_status();
}
return $this->valueOptions;
}
}