mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Update 04_GridField.md
This commit is contained in:
parent
eae3d0cfaa
commit
907fead4ac
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user