Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / big_pipe / src / Render / BigPipeResponseAttachmentsProcessor.php
index 94b8923700ddbd41a9a004bf68770cb279dd5641..66ed363b6c0f1d0840ca6da1b8495c1440bd8e85 100644 (file)
@@ -9,6 +9,7 @@ use Drupal\Core\Extension\ModuleHandlerInterface;
 use Drupal\Core\Form\EnforcedResponseException;
 use Drupal\Core\Render\AttachmentsInterface;
 use Drupal\Core\Render\AttachmentsResponseProcessorInterface;
+use Drupal\Core\Render\HtmlResponse;
 use Drupal\Core\Render\HtmlResponseAttachmentsProcessor;
 use Drupal\Core\Render\RendererInterface;
 use Symfony\Component\HttpFoundation\RequestStack;
@@ -57,7 +58,7 @@ class BigPipeResponseAttachmentsProcessor extends HtmlResponseAttachmentsProcess
    * {@inheritdoc}
    */
   public function processAttachments(AttachmentsInterface $response) {
-    assert('$response instanceof \Drupal\Core\Render\HtmlResponse');
+    assert($response instanceof HtmlResponse);
 
     // First, render the actual placeholders; this will cause the BigPipe
     // placeholder strategy to generate BigPipe placeholders. We need those to