We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ModuleController::setPreviewView()
1 parent ae6957f commit 72e4a4cCopy full SHA for 72e4a4c
src/Http/Controllers/Admin/ModuleController.php
@@ -332,6 +332,10 @@ abstract class ModuleController extends Controller
332
protected $viewPrefix;
333
334
/**
335
+ * The template to use for previewing.
336
+ *
337
+ * Do not modify this directly but use the method setPreviewView().
338
339
* @var string
340
*/
341
protected $previewView;
@@ -748,6 +752,14 @@ protected function setBreadcrumbs(Breadcrumbs $breadcrumbs): void
748
752
$this->breadcrumbs = $breadcrumbs;
749
753
}
750
754
755
+ /**
756
+ * Set the template for the preview view.
757
+ */
758
+ protected function setPreviewView(string $previewView): void
759
+ {
760
+ $this->previewView = $previewView;
761
+ }
762
+
751
763
764
* $type can be index or browser.
765
0 commit comments