Timeline for What's the difference between drupalSettings and settings parameter in behaviors?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 5, 2018 at 17:20 | comment | added | 4uk4 |
You can use alternative settings in the AJAX SettingsCommand by keeping the default merge=FALSE. You wouldn't find many examples though in core, because normally the settings are collected from the rendered output and added to the response with merge=TRUE.
|
|
Nov 5, 2018 at 14:02 | comment | added | Florian Müller | see also my updated answer with further tests... | |
Nov 5, 2018 at 13:44 | comment | added | Florian Müller |
So, you're saying that the settings parameter is also reduced to the given context? How can Drupal distinguish when I attach my settings to the page (using hook_page_attachments ) which behavior context will use the given setting?
|
|
Nov 5, 2018 at 13:36 | history | answered | mpdonadio♦ | CC BY-SA 4.0 |