Skip to content
Snippets Groups Projects
Verified Commit d0677640 authored by Dave Long's avatar Dave Long
Browse files

Issue #3415706 by kim.pepper, smustgrave, longwave: Deprecate unused constant...

Issue #3415706 by kim.pepper, smustgrave, longwave: Deprecate unused constant BYTES_TO_READ in FileUploadResource and TemporaryJsonapiFileFieldUploader
parent b8a5017e
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,12 @@ class FileUploadResource extends ResourceBase { ...@@ -79,6 +79,12 @@ class FileUploadResource extends ResourceBase {
* The amount of bytes to read in each iteration when streaming file data. * The amount of bytes to read in each iteration when streaming file data.
* *
* @var int * @var int
*
* @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use
* \Drupal\file\Upload\InputStreamFileWriterInterface::DEFAULT_BYTES_TO_READ
* instead.
*
* @see https://www.drupal.org/node/3380607
*/ */
const BYTES_TO_READ = 8192; const BYTES_TO_READ = 8192;
......
...@@ -63,6 +63,12 @@ class TemporaryJsonapiFileFieldUploader { ...@@ -63,6 +63,12 @@ class TemporaryJsonapiFileFieldUploader {
* The amount of bytes to read in each iteration when streaming file data. * The amount of bytes to read in each iteration when streaming file data.
* *
* @var int * @var int
*
* @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use
* \Drupal\file\Upload\InputStreamFileWriterInterface::DEFAULT_BYTES_TO_READ
* instead.
*
* @see https://www.drupal.org/node/3380607
*/ */
const BYTES_TO_READ = 8192; const BYTES_TO_READ = 8192;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment