From d5960b5efb9db0c7dccf5e49d7c6f20be216b357 Mon Sep 17 00:00:00 2001 From: Christopher Darling Date: Fri, 3 Nov 2017 14:54:27 +0000 Subject: [PATCH] DOCS fix removeComponentsByType example missing namespace --- docs/en/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/en/index.md b/docs/en/index.md index 5afe558..7ccfe8c 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -65,8 +65,10 @@ a new record. By default it allows them to select the model class for the grid f subclasses. You can control the createable classes using the `setClasses` method. ```php +use SilverStripe\Forms\GridField\GridFieldAddNewButton; + $grid->getConfig() - ->removeComponentsByType('GridFieldAddNewButton') + ->removeComponentsByType(GridFieldAddNewButton::class) ->addComponent(new GridFieldAddNewMultiClass()); ```