file_requirements

function file_requirements

file_requirements($phase)

Implements hook_requirements().

Display information about getting upload progress bars working.

File

core/modules/file/file.install, line 65
Install, update and uninstall functions for File module.

Code

function file_requirements($phase) {
  $requirements = array();

  // Check the server's ability to indicate upload progress.
  if ($phase == 'runtime') {
    $description = NULL;
    $implementation = file_progress_implementation();
    $server_software = \Drupal::request()->server->get('SERVER_SOFTWARE');