FieldResolver::$currentUser

Same name in other branches
  1. 9 core/modules/jsonapi/src/Context/FieldResolver.php \Drupal\jsonapi\Context\FieldResolver::currentUser
  2. 10 core/modules/jsonapi/src/Context/FieldResolver.php \Drupal\jsonapi\Context\FieldResolver::currentUser

The current user account.

Type: \Drupal\Core\Session\AccountInterface

File

core/modules/jsonapi/src/Context/FieldResolver.php, line 116

Class

FieldResolver
A service that evaluates external path expressions against Drupal fields.

Namespace

Drupal\jsonapi\Context

Code

protected $currentUser;

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