public function Tasks::getFormOptions
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/pgsql/Install/Tasks.php, line 282
Class
- Tasks
- Specifies installation tasks for PostgreSQL databases.
Namespace
Drupal\Core\Database\Driver\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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!Driver!pgsql!Install!Tasks.php/function/Tasks::getFormOptions/8.1.x