protected function Null::defaultActions

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

Overrides ArgumentPluginBase::defaultActions

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/Null.php, line 48
Definition of Drupal\views\Plugin\views\argument\Null.

Class

Null
Argument handler that ignores the argument.

Namespace

Drupal\views\Plugin\views\argument

Code

protected function defaultActions($which = NULL) {
  if ($which) {
    if (in_array($which, array(
      'ignore',
      'not found',
      'empty',
      'default',
    ))) {
      return parent::defaultActions($which);
    }
    return;
  }
  $actions = parent::defaultActions();
  unset($actions['summary asc']);
  unset($actions['summary desc']);
  return $actions;
}