$response->
setContent($content);
} // If there are neither BigPipe placeholders nor no-JS BigPipe placeholders,
// there isn't anything dynamic in this response, and we can return early:
// there is no point in sending this response using BigPipe.
if (empty($attachments['big_pipe_placeholders'
]) &&
empty($attachments['big_pipe_nojs_placeholders'
])) { return;
} $big_pipe_response =
new BigPipeResponse($response);
$big_pipe_response->
setBigPipeService($this->
getBigPipeService($event));
$event->
setResponse($big_pipe_response);
} /**
* Returns the BigPipe service to use to send the current response.
*
* @param \Symfony\Component\HttpKernel\Event\ResponseEvent $event
* A response event.
*
* @return \Drupal\big_pipe\Render\BigPipe
* The BigPipe service.
*/