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

Breadcrumb

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

function InputBag::replace

Replaces the current input values by a new set.

Overrides ParameterBag::replace

File

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

Class

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

Namespace

Symfony\Component\HttpFoundation

Code

public function replace(array $inputs = []) : void {
    $this->parameters = [];
    $this->add($inputs);
}

API Navigation

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