function SettingsCommand::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Ajax/SettingsCommand.php \Drupal\Core\Ajax\SettingsCommand::__construct()
- 10 core/lib/Drupal/Core/Ajax/SettingsCommand.php \Drupal\Core\Ajax\SettingsCommand::__construct()
- 9 core/lib/Drupal/Core/Ajax/SettingsCommand.php \Drupal\Core\Ajax\SettingsCommand::__construct()
- 8.9.x core/lib/Drupal/Core/Ajax/SettingsCommand.php \Drupal\Core\Ajax\SettingsCommand::__construct()
Constructs a SettingsCommand object.
Parameters
array $settings: An array of key/value pairs of JavaScript settings.
bool $merge: Whether the settings should be merged into the global drupalSettings.
File
-
core/
lib/ Drupal/ Core/ Ajax/ SettingsCommand.php, line 29
Class
- SettingsCommand
- AJAX command for adjusting Drupal's JavaScript settings.
Namespace
Drupal\Core\AjaxCode
public function __construct(protected array $settings, protected $merge = FALSE) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.