function Null::default_actions

Override default_actions() to remove actions that don't make sense for a null argument.

Overrides ArgumentPluginBase::default_actions

File

drupal/core/modules/views/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\argument

Code

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;
}