function CallsDestructableServiceController::render

Same name in other branches
  1. 11.x core/modules/system/tests/modules/destructable_test/src/Controller/CallsDestructableServiceController.php \Drupal\destructable_test\Controller\CallsDestructableServiceController::render()

Render callback.

Return value

\Symfony\Component\HttpFoundation\Response Response.

1 string reference to 'CallsDestructableServiceController::render'
destructable_test.routing.yml in core/modules/system/tests/modules/destructable_test/destructable_test.routing.yml
core/modules/system/tests/modules/destructable_test/destructable_test.routing.yml

File

core/modules/system/tests/modules/destructable_test/src/Controller/CallsDestructableServiceController.php, line 40

Class

CallsDestructableServiceController
Controller to instantiate the destructable service.

Namespace

Drupal\destructable_test\Controller

Code

public function render(Request $request) : Response {
    $this->destructable
        ->setSemaphore($request->query
        ->get('semaphore'));
    return new Response('This is a longer-ish string of content to send to the client, to invoke any trivial transfer buffers both on the server and client side.');
}

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