SelectionTrait::$currentUser

The current user.

Type: \Drupal\Core\Session\AccountInterface

File

core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionTrait.php, line 36

Class

SelectionTrait
Provides common methods and injects services for core selection handlers.

Namespace

Drupal\Core\Entity\EntityReferenceSelection

Code

protected $currentUser;

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