Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NullArgument.php

function NullArgument::defaultActions

Overrides ArgumentPluginBase::defaultActions

File

core/modules/views/src/Plugin/views/argument/NullArgument.php, line 43

Class

NullArgument
Argument handler that ignores the argument.

Namespace

Drupal\views\Plugin\views\argument

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal