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

Breadcrumb

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

function FileBag::add

Overrides ParameterBag::add

1 call to FileBag::add()
FileBag::replace in vendor/symfony/http-foundation/FileBag.php
Replaces the current parameters by a new set.

File

vendor/symfony/http-foundation/FileBag.php, line 49

Class

FileBag
FileBag is a container for uploaded files.

Namespace

Symfony\Component\HttpFoundation

Code

public function add(array $files = []) : void {
    foreach ($files as $key => $file) {
        $this->set($key, $file);
    }
}

API Navigation

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