public SettingsCommand::__construct(array $settings, $merge = FALSE)
Constructs a SettingsCommand object.
array $settings: An array of key/value pairs of JavaScript settings.
bool $merge: Whether the settings should be merged into the global drupalSettings.
public function __construct(array $settings, $merge = FALSE) { $this->settings = $settings; $this->merge = $merge; }
© 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!Ajax!SettingsCommand.php/function/SettingsCommand::__construct/8.1.x