mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #7609 from SpiritLevel/patch-1
Update 04_GridField.md
This commit is contained in:
commit
2e07a499c5
@ -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