You are here

protected function IndexTidDepth::defaultActions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php \Drupal\taxonomy\Plugin\views\argument\IndexTidDepth::defaultActions()

Override defaultActions() to remove summary actions.

Overrides ArgumentPluginBase::defaultActions

File

core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php, line 80
Contains \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;
}