Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/Http/Controllers/Admin/ModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ abstract class ModuleController extends Controller
protected $viewPrefix;

/**
* The template to use for previewing.
*
* Do not modify this directly but use the method setPreviewView().
*
* @var string
*/
protected $previewView;
Expand Down Expand Up @@ -748,6 +752,14 @@ protected function setBreadcrumbs(Breadcrumbs $breadcrumbs): void
$this->breadcrumbs = $breadcrumbs;
}

/**
* Set the template for the preview view.
*/
protected function setPreviewView(string $previewView): void
{
$this->previewView = $previewView;
}

/**
* $type can be index or browser.
*/
Expand Down
Loading