BigPipeInterface::sendContent

public BigPipeInterface::sendContent($content, array $attachments) Sends an HTML response in chunks using the BigPipe technique. Parameters string $content: The HTML response content to send. array $attachments: The HTML response's attachments. File core/modules/big_pipe/src/Render/BigPipeInterface.php, line 142 Class BigPipeInterface Interface for sending an HTML response in chunks (to get faster page loads). Namespace Drupal\big_pipe\Render Code public function sendContent($content,

BigPipe::sendPreBody

protected BigPipe::sendPreBody($pre_body, array $no_js_placeholders, AttachedAssetsInterface $cumulative_assets) Sends everything until just before </body>. Parameters string $pre_body: The HTML response's content until the closing </body> tag. array $no_js_placeholders: The no-JS BigPipe placeholders. \Drupal\Core\Asset\AttachedAssetsInterface $cumulative_assets: The cumulative assets sent so far; to be updated while rendering no-JS BigPipe placeholders. File core/modules/big_pipe

BigPipeController

Returns responses for BigPipe module routes. Hierarchy class \Drupal\big_pipe\Controller\BigPipeController File core/modules/big_pipe/src/Controller/BigPipeController.php, line 16 Namespace Drupal\big_pipe\Controller Members Name Modifiers Type Description BigPipeController::setNoJsCookie public function Sets a BigPipe no-JS cookie, redirects back to the original location.

BigPipeController::setNoJsCookie

public BigPipeController::setNoJsCookie(Request $request) Sets a BigPipe no-JS cookie, redirects back to the original location. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request. Return value \Drupal\Core\Routing\LocalRedirectResponse A response that sets the no-JS cookie and redirects back to the original location. Throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException Thrown when the no-JS cookie is already set or when there is no session.

BigPipe::__construct

public BigPipe::__construct(RendererInterface $renderer, SessionInterface $session, RequestStack $request_stack, HttpKernelInterface $http_kernel, EventDispatcherInterface $event_dispatcher, ConfigFactoryInterface $config_factory) Constructs a new BigPipe class. Parameters \Drupal\Core\Render\RendererInterface $renderer: The renderer. \Symfony\Component\HttpFoundation\Session\SessionInterface $session: The session. \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stac

BigPipe::START_SIGNAL

The BigPipe placeholder replacements start signal. File core/modules/big_pipe/src/Render/BigPipe.php, line 33 Class BigPipe The default BigPipe service. Namespace Drupal\big_pipe\Render Code const START_SIGNAL = '<script type="application/vnd.drupal-ajax" data-big-pipe-event="start"></script>';

BigPipe::STOP_SIGNAL

The BigPipe placeholder replacements stop signal. File core/modules/big_pipe/src/Render/BigPipe.php, line 40 Class BigPipe The default BigPipe service. Namespace Drupal\big_pipe\Render Code const STOP_SIGNAL = '<script type="application/vnd.drupal-ajax" data-big-pipe-event="stop"></script>';

BigPipe::sendContent

public BigPipe::sendContent($content, array $attachments) Sends an HTML response in chunks using the BigPipe technique. Parameters string $content: The HTML response content to send. array $attachments: The HTML response's attachments. Overrides BigPipeInterface::sendContent File core/modules/big_pipe/src/Render/BigPipe.php, line 112 Class BigPipe The default BigPipe service. Namespace Drupal\big_pipe\Render Code public function sendContent($content, array $attachments) { // First,

BigPipe::sendNoJsPlaceholders

protected BigPipe::sendNoJsPlaceholders($html, $no_js_placeholders, AttachedAssetsInterface $cumulative_assets) Sends no-JS BigPipe placeholders' replacements as embedded HTML responses. Parameters string $html: HTML markup. array $no_js_placeholders: Associative array; the no-JS BigPipe placeholders. Keys are the BigPipe selectors. \Drupal\Core\Asset\AttachedAssetsInterface $cumulative_assets: The cumulative assets sent so far; to be updated while rendering no-JS BigPipe placeholders. Throws

BigPipe::renderPlaceholder

protected BigPipe::renderPlaceholder($placeholder, array $placeholder_render_array) Renders a placeholder, and just that placeholder. BigPipe renders placeholders independently of the rest of the content, so it needs to be able to render placeholders by themselves. Parameters string $placeholder: The placeholder to render. array $placeholder_render_array: The render array associated with that placeholder. Return value array The render array representing the rendered placeholder. See also \Dr