You are here

protected function IndexNameDepth::defaultActions in Views Taxonomy Term Name Depth 8.6

Same name and namespace in other branches
  1. 8 src/Plugin/views/argument/IndexNameDepth.php \Drupal\views_taxonomy_term_name_depth\Plugin\views\argument\IndexNameDepth::defaultActions()
  2. 8.3 src/Plugin/views/argument/IndexNameDepth.php \Drupal\views_taxonomy_term_name_depth\Plugin\views\argument\IndexNameDepth::defaultActions()
  3. 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 114

Class

IndexNameDepth
Argument handler for taxonomy terms with depth.

Namespace

Drupal\views_taxonomy_term_name_depth\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 FALSE;
  }
  $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;
}