protected function IndexTidDepth::defaultActions

Override defaultActions() to remove summary actions.

Overrides ArgumentPluginBase::defaultActions

File

drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument/IndexTidDepth.php, line 83
Definition of Drupal\taxonomy\Plugin\views\argument\IndexTidDepth.

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, array(
      '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;
}