ViewExecutable::$user

Same name in other branches
  1. 9 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::user
  2. 10 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::user
  3. 11.x core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::user

The current user.

Type: \Drupal\Core\Session\AccountInterface

File

core/modules/views/src/ViewExecutable.php, line 412

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

protected $user;

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