You are here

function UserUid::default_actions in Views (for Drupal 7) 8.3

Provide a list of default behaviors for this argument if the argument is not present.

Override this method to provide additional (or fewer) default behaviors.

Overrides ArgumentPluginBase::default_actions

File

lib/Views/comment/Plugin/views/argument/UserUid.php, line 43
Definition of Views\comment\Plugin\views\argument\UserUid.

Class

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

Namespace

Views\comment\Plugin\views\argument

Code

function default_actions($which = NULL) {

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