Following the Plugin module's issue queue, there is an active issue/patch to implement Drupal's subFormState when using plugin selector forms. As others stated in that parent issue, using both plugin and paragraphs creates a bug with paragraphs when trying to retrieve the selected plugin id by the complete_form_state by key.

Applying this patch seems to the appropriate method for resolving plugin with form_state, but causes fatal errors within the plugin module, as it is still passing FormStateInterface instead of the SubFormState. Assuming that issue gets proper testing and gets merged into plugin, the payment module will need to be updated as well.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aczietlow created an issue. See original summary.

aczietlow’s picture

Certainly not a complete patch, but here's a starting proof of concept.

bwoods’s picture

Small update to patch to account for PHP 8.