function UserUid::defaultActions

Same name in other branches
  1. 9 core/modules/comment/src/Plugin/views/argument/UserUid.php \Drupal\comment\Plugin\views\argument\UserUid::defaultActions()
  2. 8.9.x core/modules/comment/src/Plugin/views/argument/UserUid.php \Drupal\comment\Plugin\views\argument\UserUid::defaultActions()
  3. 11.x core/modules/comment/src/Plugin/views/argument/UserUid.php \Drupal\comment\Plugin\views\argument\UserUid::defaultActions()

Overrides ArgumentPluginBase::defaultActions

File

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

Class

UserUid
The views user ID argument handler.

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);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.