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

Breadcrumb

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

function ControllerResolver::allowControllers

Parameters

array<class-string> $types:

array<class-string> $attributes:

File

vendor/symfony/http-kernel/Controller/ControllerResolver.php, line 40

Class

ControllerResolver
This implementation uses the '_controller' request attribute to determine the controller to execute.

Namespace

Symfony\Component\HttpKernel\Controller

Code

public function allowControllers(array $types = [], array $attributes = []) : void {
    foreach ($types as $type) {
        $this->allowedControllerTypes[$type] = $type;
    }
    foreach ($attributes as $attribute) {
        $this->allowedControllerAttributes[$attribute] = $attribute;
    }
}

API Navigation

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