-
Notifications
You must be signed in to change notification settings - Fork 96
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 Remove deprecated extension hooks #1880
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
use SilverStripe\Control\HTTPResponse; | ||
use SilverStripe\Core\Injector\Injector; | ||
use SilverStripe\Forms\Form; | ||
use SilverStripe\Dev\Deprecation; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unused |
||
|
||
/** | ||
* Parent controller for all CMS-global modals | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -321,19 +321,6 @@ protected function getGridFieldConfig(): GridFieldConfig | |
->addComponent($exportButton) | ||
->addComponents(Injector::inst()->createWithArgs(GridFieldPrintButton::class, ['buttons-before-left'])); | ||
|
||
// Remove default and add our own filter header with extension points | ||
// to retain API until deprecation in 5.0 | ||
$config->removeComponentsByType(GridFieldFilterHeader::class); | ||
$config->addComponent(Injector::inst()->createWithArgs(GridFieldFilterHeader::class, [ | ||
false, | ||
function ($context) { | ||
$this->extend('updateSearchContext', $context); | ||
}, | ||
function ($form) { | ||
$this->extend('updateSearchForm', $form); | ||
} | ||
])); | ||
Comment on lines
-324
to
-335
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't really have a way to deprecate these per-se, but they were removed in other admin sections already so it seems sensible to remove them from here as well. This code was added in #665 which moved the search context from Developers who need to update these can either:
EDIT: |
||
|
||
if (!$this->showSearchForm || | ||
(is_array($this->showSearchForm) && !in_array($this->getModelClass(), $this->showSearchForm ?? [])) | ||
) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused