$big_pipe_placeholders =
$attachments['big_pipe_placeholders'
];
unset($attachments['big_pipe_placeholders'
]);
} if (isset($attachments['big_pipe_nojs_placeholders'
])) { $big_pipe_nojs_placeholders =
$attachments['big_pipe_nojs_placeholders'
];
unset($attachments['big_pipe_nojs_placeholders'
]);
} $html_response =
clone $response;
$html_response->
setAttachments($attachments);
// Call HtmlResponseAttachmentsProcessor to process all other attachments.
$processed_html_response =
$this->htmlResponseAttachmentsProcessor->
processAttachments($html_response);
// Restore BigPipe placeholders.
$attachments =
$processed_html_response->
getAttachments();
$big_pipe_response =
clone $processed_html_response;
if (count($big_pipe_placeholders)) { $attachments['big_pipe_placeholders'
] =
$big_pipe_placeholders;
} if (count($big_pipe_nojs_placeholders)) { $attachments['big_pipe_nojs_placeholders'
] =
$big_pipe_nojs_placeholders;
} $big_pipe_response->
setAttachments($attachments);