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

Breadcrumb

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

function ControllerArgumentsEvent::setController

Parameters

array<class-string, list<object>>|null $attributes:

File

vendor/symfony/http-kernel/Event/ControllerArgumentsEvent.php, line 58

Class

ControllerArgumentsEvent
Allows filtering of controller arguments.

Namespace

Symfony\Component\HttpKernel\Event

Code

public function setController(callable $controller, ?array $attributes = null) : void {
    $this->controllerEvent
        ->setController($controller, $attributes);
    unset($this->namedArguments);
}

API Navigation

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