ENH Use config instead of runtime code to remove menu item

This commit is contained in:
Guy Sartorelli 2024-10-15 12:22:56 +13:00
parent 81cba4ed4c
commit 422bc0256a
No known key found for this signature in database
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 $ignore_menuitem = true;
/**
* @var string The name of the folder where form submissions will be placed by default
*/