diff --git a/docs/en/02_Developer_Guides/03_Forms/Field_types/04_GridField.md b/docs/en/02_Developer_Guides/03_Forms/Field_types/04_GridField.md index 5202e1de9..bf68b4fcf 100644 --- a/docs/en/02_Developer_Guides/03_Forms/Field_types/04_GridField.md +++ b/docs/en/02_Developer_Guides/03_Forms/Field_types/04_GridField.md @@ -89,7 +89,7 @@ class Page extends SiteTree // Consult the API documentation for each component to determine the configuration // you can do. // - $dataColumns = $config->getComponentByType('GridFieldDataColumns'); + $dataColumns = $config->getComponentByType(GridFieldDataColumns::class); $dataColumns->setDisplayFields([ 'Title' => 'Title',