Sindbad~EG File Manager
<?php // $file = /home/sarayaglobal/sarayamystair.in/plugins/system/yooessentials/modules/source/src/Providers/Csv/provider.json
return [
'name' => 'csv',
'title' => 'CSV File',
'icon' => $filter->apply('url', '~yooessentials_url/modules/source/src/Providers/Csv/icon.svg', $file),
'testEndpoint' => 'yooessentials/source/csv/test',
'fields' => [
'name' => [
'label' => 'Name',
'description' => 'A name to identify the source.',
'attrs' => [
'autofocus' => true
]
],
'file' => [
'label' => 'CSV File',
'type' => 'yooessentials-file',
'description' => 'A path to a local CSV formated file which will be used as source. Must be UTF-8 encoded.'
],
'_delimeters' => [
'description' => 'The enclosure and delimiter characters the CSV file is formated with.',
'type' => 'grid',
'width' => '1-2',
'fields' => [
'enclosure' => [
'label' => 'Enclosure',
'attrs' => [
'placeholder' => '"'
]
],
'delimiter' => [
'label' => 'Delimiter',
'attrs' => [
'placeholder' => ','
]
]
]
]
]
];
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists