public function Tasks::getFormOptions in Drupal 10
Same name in this branch
- 10 core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::getFormOptions()
- 10 core/modules/sqlite/src/Driver/Database/sqlite/Install/Tasks.php \Drupal\sqlite\Driver\Database\sqlite\Install\Tasks::getFormOptions()
- 10 core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php \Drupal\pgsql\Driver\Database\pgsql\Install\Tasks::getFormOptions()
- 10 core/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php \Drupal\mysql\Driver\Database\mysql\Install\Tasks::getFormOptions()
Returns driver specific configuration options.
Parameters
string[] $database: An array of driver specific configuration options.
Return value
array The options form array.
Overrides Tasks::getFormOptions
File
- core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Install/ Tasks.php, line 311
Class
- Tasks
- Specifies installation tasks for PostgreSQL databases.
Namespace
Drupal\pgsql\Driver\Database\pgsql\InstallCode
public function getFormOptions(array $database) {
$form = parent::getFormOptions($database);
if (empty($form['advanced_options']['port']['#default_value'])) {
$form['advanced_options']['port']['#default_value'] = '5432';
}
return $form;
}