- Issue created by @lauriii
- Status changed to Needs review
over 1 year ago 5:17pm 4 September 2023 - last update
over 1 year ago 30,133 pass, 1 fail The last submitted patch, 3: 3385205-3.patch, failed testing. View results →
- Status changed to Needs work
6 months ago 3:55pm 9 July 2024 - 🇺🇸United States mglaman WI, USA
I was hitting this. It's due to how
::CALLBACK
is parsed. It is handled by\Drupal\Core\Form\FormStateInterface::prepareCallback
. The problem is that it is the main form state executing this code.public function prepareCallback($callback) { if (is_string($callback) && str_starts_with($callback, '::')) { $callback = [$this->getFormObject(), substr($callback, 2)]; }
Since it is not the subform state, there is always the incorrect form object. A fix would be to change
::processForm
to[$this, 'processForm']
for a true callable.