From d6357ec187de87c95d554f3becf8a7d9379ddc9b Mon Sep 17 00:00:00 2001 From: chromos33 Date: Wed, 23 Dec 2020 11:26:38 +0100 Subject: [PATCH] Update index.md Updated doc to use "::class" instead of Literals to reflect SS4 changes --- docs/en/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/index.md b/docs/en/index.md index 7ccfe8c..151d804 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -37,13 +37,13 @@ You can customise the form fields that are used in the grid by calling `setDispl inline editing component. By default field scaffolding will be used. ```php -$grid->getConfig()->getComponentByType('GridFieldEditableColumns')->setDisplayFields(array( +$grid->getConfig()->getComponentByType(GridFieldEditableColumns::class)->setDisplayFields(array( 'FirstField' => function($record, $column, $grid) { return new TextField($column); }, 'SecondField' => array( 'title' => 'Custom Title', - 'field' => 'ReadonlyField' + 'field' => ReadonlyField::class ), 'ThirdField' => array( 'title' => 'Custom Title Two',