Update 04_GridField.md

This commit is contained in:
David Alexander 2017-11-17 14:04:32 +13:00 committed by GitHub
parent eae3d0cfaa
commit 907fead4ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ class Page extends SiteTree
// Consult the API documentation for each component to determine the configuration // Consult the API documentation for each component to determine the configuration
// you can do. // you can do.
// //
$dataColumns = $config->getComponentByType('GridFieldDataColumns'); $dataColumns = $config->getComponentByType(GridFieldDataColumns::class);
$dataColumns->setDisplayFields([ $dataColumns->setDisplayFields([
'Title' => 'Title', 'Title' => 'Title',