ENH Use config instead of runtime code to remove menu item (#1337)

This commit is contained in:
Guy Sartorelli 2024-10-21 11:56:02 +13:00 committed by GitHub
parent 4f821d1188
commit 574ca14ee7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -1,6 +0,0 @@
<?php
use SilverStripe\Admin\CMSMenu;
use SilverStripe\UserForms\Control\UserDefinedFormAdmin;
CMSMenu::remove_menu_class(UserDefinedFormAdmin::class);

View File

@ -47,6 +47,8 @@ class UserDefinedFormAdmin extends LeftAndMain
private static $url_segment = 'user-forms'; 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 * @var string The name of the folder where form submissions will be placed by default
*/ */