You are here

protected function UserUid::defaultActions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/comment/src/Plugin/views/argument/UserUid.php \Drupal\comment\Plugin\views\argument\UserUid::defaultActions()
  2. 9 core/modules/comment/src/Plugin/views/argument/UserUid.php \Drupal\comment\Plugin\views\argument\UserUid::defaultActions()

File

core/modules/comment/src/Plugin/views/argument/UserUid.php, line 65

Class

UserUid
Argument handler to accept a user id to check for nodes that user posted or commented on.

Namespace

Drupal\comment\Plugin\views\argument

Code

protected function defaultActions($which = NULL) {

  // Disallow summary views on this argument.
  if (!$which) {
    $actions = parent::defaultActions();
    unset($actions['summary asc']);
    unset($actions['summary desc']);
    return $actions;
  }
  if ($which != 'summary asc' && $which != 'summary desc') {
    return parent::defaultActions($which);
  }
}