mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
ENH Use config instead of runtime code to remove menu item (#1337)
This commit is contained in:
parent
4f821d1188
commit
574ca14ee7
@ -1,6 +0,0 @@
|
||||
<?php
|
||||
|
||||
use SilverStripe\Admin\CMSMenu;
|
||||
use SilverStripe\UserForms\Control\UserDefinedFormAdmin;
|
||||
|
||||
CMSMenu::remove_menu_class(UserDefinedFormAdmin::class);
|
@ -47,6 +47,8 @@ class UserDefinedFormAdmin extends LeftAndMain
|
||||
|
||||
private static $url_segment = 'user-forms';
|
||||
|
||||
private static $ignore_menuitem = true;
|
||||
|
||||
/**
|
||||
* @var string The name of the folder where form submissions will be placed by default
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user