Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Currently, argument values are just passed through. It's quite tedious to consistently add entity_load()
or node_load()
calls.
Because JS callbacks are not URL based, we should utilize parameter name mapping with callback functions to "load" the values automatically.
In fact, we can even do this semi-automatically similarly to how hook_menu()
and hook_load()
operate, but instead of matching %parameter
from a URL, we'd simply match the parameter name + _load
.
Comment | File | Size | Author |
---|---|---|---|
#5 | add_load_arguments-2836007-5.patch | 8.05 KB | markhalliwell |
Comments
Comment #2
markhalliwellComment #3
markhalliwellThis is still relatively experimental and definitely changes the behavior on what value callback parameters are passed.
This may be 7.x-3.x work. Leaving as a patch for now.
Comment #4
markhalliwellRemoving previous code example from IS now that there's a working POC.
Comment #5
markhalliwellAllowed
load arguments
to be completely disabled (for BC).Comment #7
markhalliwellChange record: https://www.drupal.org/node/2839145