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

Breadcrumb

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

function History::add

Adds a Request to the history.

File

vendor/symfony/browser-kit/History.php, line 38

Class

History
History.

Namespace

Symfony\Component\BrowserKit

Code

public function add(Request $request) : void {
    $this->stack = \array_slice($this->stack, 0, $this->position + 1);
    $this->stack[] = clone $request;
    $this->position = \count($this->stack) - 1;
}
RSS feed
Powered by Drupal