public Tasks::getFormOptions(array $database)
Return driver specific configuration options.
Parameters
$database: An array of driver specific configuration options.
Return value
The options form array.
Overrides Tasks::getFormOptions
File
- core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php, line 131
Class
- Tasks
- Specifies installation tasks for MySQL and equivalent databases.
Namespace
Drupal\Core\Database\Driver\mysql\Install
Code
public function getFormOptions(array $database) { $form = parent::getFormOptions($database); if (empty($form['advanced_options']['port']['#default_value'])) { $form['advanced_options']['port']['#default_value'] = '3306'; } return $form; }
Please login to continue.