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

Breadcrumb

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

function ExceptionEvent::allowCustomResponseCode

Mark the event as allowing a custom response code.

File

vendor/symfony/http-kernel/Event/ExceptionEvent.php, line 65

Class

ExceptionEvent
Allows to create a response for a thrown exception.

Namespace

Symfony\Component\HttpKernel\Event

Code

public function allowCustomResponseCode() : void {
    $this->allowCustomResponseCode = true;
}

API Navigation

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