function FileDownloadHook::__construct

Same name and namespace in other branches
  1. 11.x core/modules/file/src/Hook/FileDownloadHook.php \Drupal\file\Hook\FileDownloadHook::__construct()

File

core/modules/file/src/Hook/FileDownloadHook.php, line 19

Class

FileDownloadHook
Implements hook_file_download().

Namespace

Drupal\file\Hook

Code

public function __construct(protected readonly FileRepositoryInterface $fileRepository, protected readonly FileUsageInterface $fileUsage, protected readonly AccountInterface $currentUser) {
}

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