Problem/Motivation
The form at /admin/config/search/path/patterns/add doesn't fully work with JavaScript enabled, when Config Enforce Devel is installed.
Steps to reproduce
- Clean install of Drupal 11.x
- Install Config Enforce Devel
- Navigate to
/admin/config/search/path/patterns/add
- Select an option from the Pattern type select list
Expected result: The form works as expected, presenting Path pattern, token browser, and bundle selection elements.

Actual result: The additional form elements do not appear, and there is an AJAX error.

Error message:
Exception: Serialization of 'Closure' is not allowed in serialize() (line 14 of /var/www/html/.local-dev/web/core/lib/Drupal/Component/Serialization/PhpSerialize.php).
Proposed resolution
TBD, disabling enforce by default has no effect.
Remaining tasks
TBD
User interface changes
TBD
API changes
TBD
Data model changes
TBD
Comments
Comment #2
star-szrComment #4
star-szrRe-titling, and there is an MR now.
Comment #6
star-szr