function FileUpload::__construct
Same name in other branches
- 8.9.x core/modules/jsonapi/src/Controller/FileUpload.php \Drupal\jsonapi\Controller\FileUpload::__construct()
- 10 core/modules/jsonapi/src/Controller/FileUpload.php \Drupal\jsonapi\Controller\FileUpload::__construct()
- 11.x core/modules/jsonapi/src/Controller/FileUpload.php \Drupal\jsonapi\Controller\FileUpload::__construct()
Creates a new FileUpload instance.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\Core\Entity\EntityFieldManagerInterface $field_manager: The entity field manager.
\Drupal\jsonapi\Controller\TemporaryJsonapiFileFieldUploader $file_uploader: The file uploader.
\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: An HTTP kernel for making subrequests.
File
-
core/
modules/ jsonapi/ src/ Controller/ FileUpload.php, line 84
Class
- FileUpload
- Handles file upload requests.
Namespace
Drupal\jsonapi\ControllerCode
public function __construct(AccountInterface $current_user, EntityFieldManagerInterface $field_manager, TemporaryJsonapiFileFieldUploader $file_uploader, HttpKernelInterface $http_kernel) {
$this->currentUser = $current_user;
$this->fieldManager = $field_manager;
$this->fileUploader = $file_uploader;
$this->httpKernel = $http_kernel;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.