function FormBuilder::getFileUploadMaxSize

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\FormBuilder::getFileUploadMaxSize()
  2. 8.9.x core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\FormBuilder::getFileUploadMaxSize()
  3. 11.x core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\FormBuilder::getFileUploadMaxSize()

Wraps file_upload_max_size().

Return value

int The file size limit in bytes based on the PHP upload_max_filesize and post_max_size.

1 call to FormBuilder::getFileUploadMaxSize()
FormBuilder::buildForm in core/lib/Drupal/Core/Form/FormBuilder.php

File

core/lib/Drupal/Core/Form/FormBuilder.php, line 1397

Class

FormBuilder
Provides form building and processing.

Namespace

Drupal\Core\Form

Code

protected function getFileUploadMaxSize() : int {
    return Environment::getUploadMaxSize();
}

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