mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
DOCS Fix FCQN in CsvBulkLoader example code
[ci skip]
This commit is contained in:
parent
5d7c5ffb07
commit
466e7cf142
@ -53,14 +53,15 @@ The simplest way to use [CsvBulkLoader](api:SilverStripe\Dev\CsvBulkLoader) is t
|
|||||||
|
|
||||||
```php
|
```php
|
||||||
use SilverStripe\Admin\ModelAdmin;
|
use SilverStripe\Admin\ModelAdmin;
|
||||||
|
use SilverStripe\Dev\CsvBulkLoader;
|
||||||
|
|
||||||
class PlayerAdmin extends ModelAdmin
|
class PlayerAdmin extends ModelAdmin
|
||||||
{
|
{
|
||||||
private static $managed_models = [
|
private static $managed_models = [
|
||||||
'Player'
|
Player::class
|
||||||
];
|
];
|
||||||
private static $model_importers = [
|
private static $model_importers = [
|
||||||
'Player' => 'CsvBulkLoader',
|
'Player' => CsvBulkLoader::class,
|
||||||
];
|
];
|
||||||
private static $url_segment = 'players';
|
private static $url_segment = 'players';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user