function Null::default_actions in Views (for Drupal 7) 8.3
Override default_actions() to remove actions that don't make sense for a null argument.
Overrides ArgumentPluginBase::default_actions
File
- lib/
Drupal/ views/ Plugin/ views/ argument/ Null.php, line 50 - Definition of Drupal\views\Plugin\views\argument\Null.
Class
- Null
- Argument handler that ignores the argument.
Namespace
Drupal\views\Plugin\views\argumentCode
function default_actions($which = NULL) {
if ($which) {
if (in_array($which, array(
'ignore',
'not found',
'empty',
'default',
))) {
return parent::default_actions($which);
}
return;
}
$actions = parent::default_actions();
unset($actions['summary asc']);
unset($actions['summary desc']);
return $actions;
}