protected function IndexNameDepth::defaultActions in Views Taxonomy Term Name Depth 8
Same name and namespace in other branches
- 8.6 src/Plugin/views/argument/IndexNameDepth.php \Drupal\views_taxonomy_term_name_depth\Plugin\views\argument\IndexNameDepth::defaultActions()
- 8.3 src/Plugin/views/argument/IndexNameDepth.php \Drupal\views_taxonomy_term_name_depth\Plugin\views\argument\IndexNameDepth::defaultActions()
- 7.x src/Plugin/views/argument/IndexNameDepth.php \Drupal\views_taxonomy_term_name_depth\Plugin\views\argument\IndexNameDepth::defaultActions()
Override defaultActions() to remove summary actions.
Overrides ArgumentPluginBase::defaultActions
File
- src/Plugin/ views/ argument/ IndexNameDepth.php, line 76 
Class
- IndexNameDepth
- Argument handler for taxonomy terms with depth.
Namespace
Drupal\views_taxonomy_term_name_depth\Plugin\views\argumentCode
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;
}