Skip to content

Commit 72e4a4c

Browse files
zachgarwoodifox
authored andcommitted
Create a ModuleController::setPreviewView() method
1 parent ae6957f commit 72e4a4c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Http/Controllers/Admin/ModuleController.php

+12
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,10 @@ abstract class ModuleController extends Controller
332332
protected $viewPrefix;
333333

334334
/**
335+
* The template to use for previewing.
336+
*
337+
* Do not modify this directly but use the method setPreviewView().
338+
*
335339
* @var string
336340
*/
337341
protected $previewView;
@@ -748,6 +752,14 @@ protected function setBreadcrumbs(Breadcrumbs $breadcrumbs): void
748752
$this->breadcrumbs = $breadcrumbs;
749753
}
750754

755+
/**
756+
* Set the template for the preview view.
757+
*/
758+
protected function setPreviewView(string $previewView): void
759+
{
760+
$this->previewView = $previewView;
761+
}
762+
751763
/**
752764
* $type can be index or browser.
753765
*/

0 commit comments

Comments
 (0)