protected function IndexTidDepth::defaultActions in Drupal 10
Same name and namespace in other branches
- 8 core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php \Drupal\taxonomy\Plugin\views\argument\IndexTidDepth::defaultActions()
- 9 core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php \Drupal\taxonomy\Plugin\views\argument\IndexTidDepth::defaultActions()
Override defaultActions() to remove summary actions.
File
- core/
modules/ taxonomy/ src/ Plugin/ views/ argument/ IndexTidDepth.php, line 82
Class
- IndexTidDepth
- Argument handler for taxonomy terms with depth.
Namespace
Drupal\taxonomy\Plugin\views\argumentCode
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;
}