FileRepository::$currentUser

Same name in other branches
  1. 10 core/modules/file/src/FileRepository.php \Drupal\file\FileRepository::currentUser
  2. 11.x core/modules/file/src/FileRepository.php \Drupal\file\FileRepository::currentUser

The current user.

Type: \Drupal\Core\Session\AccountInterface

File

core/modules/file/src/FileRepository.php, line 59

Class

FileRepository
Provides a file entity repository.

Namespace

Drupal\file

Code

protected $currentUser;

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