mmativ

It works fine on me

Files: Requires logging in with Slack to view/download
Untitled
r3v3rb

Welcome to SS4!!!! The version of SilverStripe that never quite does what it says on the tin... IMHO

r3v3rb

just need to remove Export and Import buttons from the view

r3v3rb

And ->removeComponent('GridFieldExportButton') does the same

r3v3rb

So ->removeComponent(GridFieldExportButton::class) gives this Argument 1 passed to SilverStripe\Forms\GridField\GridFieldConfig::removeComponent() must implement interface SilverStripe\Forms\GridField\GridFieldComponent, string given, called in /data/site/docroot/app/src/Admin/MailingAdmin.php on line 27