Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HttpFoundationFactory.php

function HttpFoundationFactory::getFiles

Converts to the input array to $_FILES structure.

1 call to HttpFoundationFactory::getFiles()
HttpFoundationFactory::createRequest in vendor/symfony/psr-http-message-bridge/Factory/HttpFoundationFactory.php
Creates a Symfony Request instance from a PSR-7 one.

File

vendor/symfony/psr-http-message-bridge/Factory/HttpFoundationFactory.php, line 79

Class

HttpFoundationFactory
@author Kévin Dunglas <dunglas@gmail.com>

Namespace

Symfony\Bridge\PsrHttpMessage\Factory

Code

private function getFiles(array $uploadedFiles) : array {
    $files = [];
    foreach ($uploadedFiles as $key => $value) {
        if ($value instanceof UploadedFileInterface) {
            $files[$key] = $this->createUploadedFile($value);
        }
        else {
            $files[$key] = $this->getFiles($value);
        }
    }
    return $files;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal