<?php // $file = /home/bluedoor/www/dev/wp-content/plugins/yooessentials/modules/auth/drivers/Database/driver.json

return [
  'type' => 'auth', 
  'name' => 'database', 
  'title' => 'Database', 
  'description' => 'Database connection details.', 
  'icon' => $filter->apply('url', '~yooessentials_url/modules/auth/drivers/Database/icon.svg', $file), 
  'endpoints' => [
    'presave' => 'yooessentials/database/presave'
  ], 
  'fields' => [
    'name' => [
      'label' => 'Name', 
      'description' => 'Optional name to identify this database.'
    ], 
    'db_host' => $config->get('yooessentials.core.fields.db.host'), 
    'db_port' => $config->get('yooessentials.core.fields.db.port'), 
    'db_user' => $config->get('yooessentials.core.fields.db.user'), 
    'db_password' => $config->get('yooessentials.core.fields.db.password')
  ]
];
