I struggle to understand how I can add a second parameter ($id) to pass along with this callback in my php class:
($this, 'updateDuplicateAcronym')
The method updateDuplicateAcronym should recieve 2 parameters, one by reference from the form where this code belongs (which works fine), and one more that I need in order to do some checks.
Someone who knows how to do this?
updateDuplicateAcronymis your function declaration, so it is based on the arguments that function expects.