SettingsCommand::$merge

Same name in other branches
  1. 9 core/lib/Drupal/Core/Ajax/SettingsCommand.php \Drupal\Core\Ajax\SettingsCommand::merge
  2. 8.9.x core/lib/Drupal/Core/Ajax/SettingsCommand.php \Drupal\Core\Ajax\SettingsCommand::merge
  3. 10 core/lib/Drupal/Core/Ajax/SettingsCommand.php \Drupal\Core\Ajax\SettingsCommand::merge

Whether the settings should be merged into the global drupalSettings.

By default (FALSE), the settings that are passed to Drupal.attachBehaviors will not include the global drupalSettings.

Type: bool

File

core/lib/Drupal/Core/Ajax/SettingsCommand.php, line 39

Class

SettingsCommand
AJAX command for adjusting Drupal's JavaScript settings.

Namespace

Drupal\Core\Ajax

Code

protected $merge;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.