AJAX command for adjusting Drupal's JavaScript settings.
The 'settings' command instructs the client either to use the given array as the settings for ajax-loaded content or to extend Drupal.settings with the given array, depending on the value of the $merge parameter.
This command is implemented by Drupal.AjaxCommands.prototype.settings() defined in misc/ajax.js.
Expanded class hierarchy of SettingsCommand
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SettingsCommand:: |
protected | property | Whether the settings should be merged into the global Drupal.settings. | |
SettingsCommand:: |
protected | property | An array of key/value pairs of JavaScript settings. | |
SettingsCommand:: |
public | function |
Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface:: |
|
SettingsCommand:: |
public | function | Constructs a SettingsCommand object. |