You are here

protected function FormBuilder::getFileUploadMaxSize in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\FormBuilder::getFileUploadMaxSize()

Wraps file_upload_max_size().

Return value

string A translated string representation of the size of the file size limit 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
Builds and processes a form for a given form ID.

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() {
  return Environment::getUploadMaxSize();
}