public function SettingsCommand::__construct

Constructs a SettingsCommand object.

Parameters

array $settings: An array of key/value pairs of JavaScript settings.

boolean $merge: Whether the settings should be merged into the global Drupal.settings.

File

drupal/core/lib/Drupal/Core/Ajax/SettingsCommand.php, line 52
Definition of Drupal\Core\Ajax\SettingsCommand.

Class

SettingsCommand
AJAX command for adjusting Drupal's JavaScript settings.

Namespace

Drupal\Core\Ajax

Code

public function __construct(array $settings, $merge = FALSE) {
  $this->settings = $settings;
  $this->merge = $merge;
}