You are here

function CurrentUser::get_argument in Views (for Drupal 7) 8.3

Return the default argument.

This needs to be overridden by every default argument handler to properly do what is needed.

Overrides ArgumentDefaultPluginBase::get_argument

File

lib/Views/user/Plugin/views/argument_default/CurrentUser.php, line 27
Definition of Views\user\Plugin\views\argument_default\CurrentUser.

Class

CurrentUser
Default argument plugin to extract the global $user

Namespace

Views\user\Plugin\views\argument_default

Code

function get_argument() {
  global $user;
  return $user->uid;
}