public function ViewsExcludePreviousNodes::getValueOptions in Views exclude previous 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
File
- src/
Plugin/ views/ filter/ ViewsExcludePreviousNodes.php, line 19
Class
- ViewsExcludePreviousNodes
- Filter exclude previous viewed node's.
Namespace
Drupal\views_exclude_previous\Plugin\views\filterCode
public function getValueOptions() {
// @todo: Make this pluggable.
$this->valueOptions = [
'node_load' => 'Exclude nodes previously loaded (hook_node_load).',
'node_view' => 'Exclude nodes previously viewd (hook_node_view).',
'views' => 'Exclude nodes that where loaded in any node based view.',
];
}