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

Breadcrumb

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

function InputBag::add

Adds input values.

Overrides ParameterBag::add

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

File

vendor/symfony/http-foundation/InputBag.php, line 56

Class

InputBag
InputBag is a container for user input values such as $_GET, $_POST, $_REQUEST, and $_COOKIE.

Namespace

Symfony\Component\HttpFoundation

Code

public function add(array $inputs = []) : void {
    foreach ($inputs as $input => $value) {
        $this->set($input, $value);
    }
}

API Navigation

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