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

Breadcrumb

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

function AbstractBrowser::requestFromRequest

Makes a request from a Request object directly.

Parameters

bool $changeHistory Whether to update the history or not (only used internally for back(), forward(), and reload()):

3 calls to AbstractBrowser::requestFromRequest()
AbstractBrowser::back in vendor/symfony/browser-kit/AbstractBrowser.php
Goes back in the browser history.
AbstractBrowser::forward in vendor/symfony/browser-kit/AbstractBrowser.php
Goes forward in the browser history.
AbstractBrowser::reload in vendor/symfony/browser-kit/AbstractBrowser.php
Reloads the current browser.

File

vendor/symfony/browser-kit/AbstractBrowser.php, line 672

Class

AbstractBrowser
Simulates a browser.

Namespace

Symfony\Component\BrowserKit

Code

protected function requestFromRequest(Request $request, bool $changeHistory = true) : Crawler {
    return $this->request($request->getMethod(), $request->getUri(), $request->getParameters(), $request->getFiles(), $request->getServer(), $request->getContent(), $changeHistory);
}

API Navigation

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