Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Update method signature to match parent class #3015

Merged

Conversation

GuySartorelli
Copy link
Member

Two commits:

Commit 1:

Quick tidyup to use the ignore_menuitem configuration property instead of removing the menu items at runtime.

Commit 2:

Reflects changes in silverstripe/silverstripe-admin#1836

Issue

@GuySartorelli GuySartorelli changed the title Pulls/6/new admincontroller API Update method signature to match parent class Oct 14, 2024
@@ -31,8 +26,3 @@
'sitetree_link',
[SiteTree::class, 'link_shortcode_handler']
);

CMSMenu::remove_menu_class(CMSMain::class);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that CMSMain itself is a special case and should not get ignore_menuitem set to true.

Comment on lines -3 to -7
use SilverStripe\Admin\CMSMenu;
use SilverStripe\CMS\Controllers\CMSMain;
use SilverStripe\CMS\Controllers\CMSPageAddController;
use SilverStripe\CMS\Controllers\CMSPageEditController;
use SilverStripe\CMS\Controllers\CMSPageSettingsController;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of these are used anymore

@GuySartorelli GuySartorelli marked this pull request as ready for review October 16, 2024 00:09
@emteknetnz emteknetnz merged commit 8474011 into silverstripe:6 Oct 20, 2024
13 of 16 checks passed
@emteknetnz emteknetnz deleted the pulls/6/new-admincontroller branch October 20, 2024 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants