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

Breadcrumb

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

function IndexTidDepth::defaultActions

Override defaultActions() to remove summary actions.

Overrides ArgumentPluginBase::defaultActions

File

core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php, line 77

Class

IndexTidDepth
Argument handler for taxonomy terms with depth.

Namespace

Drupal\taxonomy\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']);
    unset($actions['summary asc by count']);
    unset($actions['summary desc by count']);
    return $actions;
}

API Navigation

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