function FinalTestNonTerminableHttpMiddlewareClass::handle

Same name in other branches
  1. 11.x core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/FinalTestNonTerminableHttpMiddlewareClass.php \Drupal\Tests\Core\DependencyInjection\Fixture\FinalTestNonTerminableHttpMiddlewareClass::handle()

File

core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/FinalTestNonTerminableHttpMiddlewareClass.php, line 17

Class

FinalTestNonTerminableHttpMiddlewareClass
Stub of http_middleware class that is declared final but is not terminable.

Namespace

Drupal\Tests\Core\DependencyInjection\Fixture

Code

public function handle(Request $request, int $type = self::MAIN_REQUEST, bool $catch = TRUE) : Response {
    return new Response();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.