SilverLeague\LogViewer\Admin\LogViewerAdmin
Creates a CMS interface for viewing log entries
- Author: Robbie Averill <robbie@averill.co.nz>
Synopsis
class LogViewerAdmin
extends ModelAdmin
{
- // members
- private static string $url_segment = 'logs';
- private static string $menu_title = 'Logs';
- private static string $menu_icon_class = 'font-icon-list';
- private static array $managed_models = ;
- public boolean $showImportForm = false;
- // methods
- protected void init()
- public void getEditForm()
- public string getGridFieldName()
- public void getList()
Hierarchy
Extends
- SilverStripe\Admin\ModelAdmin
Members
private
- $managed_models
- $url_segment
public
- $showImportForm
Methods
protected
- init() — Add log viewer custom CSS styles
public
- getEditForm() — Remove the "add new" button
- getGridFieldName() — Get the FieldList name for the GridField
- getList() — Display newest log entries first