Callback option needed
Added option for specifying attributes for the Helper i.e. to provide a callback function
Any reason you can't specify the callback when loading component or the helper?
What you want can already be achieve using
$this->loadComponent('Recaptcha.Recaptcha', ['callback' => 'foo'])
or
$this->viewBuilder()->setHelpers(['Recaptcha.Recaptcha' => ['callback' => 'foo']]).
I don't see how that gets my data-callback attribute onto the view?
Or is what you're suggesting a way to get the attribute into the view, and so I would only need to commit the change to recaptcha view element?
Ok. It works the way you suggested with no alterations to the Helper.
Not sure the advantage of having it this way though.
Hi, what about the other callbacks? it would be useful to have an option for those too.