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

Breadcrumb

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

function Request::__clone

Clones the current request.

Note that the session is not cloned as duplicated requests are most of the time sub-requests of the main one.

File

vendor/symfony/http-foundation/Request.php, line 460

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function __clone() {
    $this->query = clone $this->query;
    $this->request = clone $this->request;
    $this->attributes = clone $this->attributes;
    $this->cookies = clone $this->cookies;
    $this->files = clone $this->files;
    $this->server = clone $this->server;
    $this->headers = clone $this->headers;
}

API Navigation

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