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

Breadcrumb

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

function ControllerReference::__construct

Parameters

string $controller The controller name:

array $attributes An array of parameters to add to the Request attributes:

array $query An array of parameters to add to the Request query string:

File

vendor/symfony/http-kernel/Controller/ControllerReference.php, line 37

Class

ControllerReference
Acts as a marker and a data holder for a Controller.

Namespace

Symfony\Component\HttpKernel\Controller

Code

public function __construct(string $controller, array $attributes = [], array $query = []) {
    $this->attributes = $attributes;
    $this->query = $query;
}
RSS feed
Powered by Drupal