public function HttpKernel::forward

Forwards the request to another controller.

Parameters

string|NULL $controller: The controller name (a string like BlogBundle:Post:index).

array $attributes: An array of request attributes.

array $query: An array of request query parameters.

Return value

Response A Response instance

File

drupal/core/lib/Drupal/Core/HttpKernel.php, line 77
Definition of Drupal\Core\HttpKernel.

Class

HttpKernel
This HttpKernel is used to manage scope changes of the DI container.

Namespace

Drupal\Core

Code

public function forward($controller, array $attributes = array(), array $query = array()) {
  $subrequest = $this
    ->setupSubrequest($controller, $attributes, $query);
  return $this
    ->handle($subrequest, HttpKernelInterface::SUB_REQUEST);
}