comparison core/modules/views_ui/src/ViewPreviewForm.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
60 '#theme_wrappers' => ['container'], 60 '#theme_wrappers' => ['container'],
61 '#attributes' => ['id' => 'views-live-preview', 'class' => ['views-live-preview']], 61 '#attributes' => ['id' => 'views-live-preview', 'class' => ['views-live-preview']],
62 'preview' => $view->renderPreview($this->displayID, $args), 62 'preview' => $view->renderPreview($this->displayID, $args),
63 ]; 63 ];
64 } 64 }
65 $uri = $view->urlInfo('preview-form'); 65 $uri = $view->toUrl('preview-form');
66 $uri->setRouteParameter('display_id', $this->displayID); 66 $uri->setRouteParameter('display_id', $this->displayID);
67 $form['#action'] = $uri->toString(); 67 $form['#action'] = $uri->toString();
68 68
69 return $form; 69 return $form;
70 } 70 }