protected function ViewsExcludePreviousNodes::defineOptions in Views exclude previous 8
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides InOperator::defineOptions
File
- src/
Plugin/ views/ filter/ ViewsExcludePreviousNodes.php, line 31
Class
- ViewsExcludePreviousNodes
- Filter exclude previous viewed node's.
Namespace
Drupal\views_exclude_previous\Plugin\views\filterCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['operator']['default'] = 'not in';
$options['value']['default'] = [];
return $options;
}