I'm using Drupal 10.3.10, and while patch #21(and others) fixes the fatal error on the site, the patch does not seem to fix the error when using Single-Directory Components module. (which will supposedly be a stable core module in D11)
I had the same problem after moving from Drupal 9.5 to 10.2.
I can't figure out why this abruptly changed the way it rendered (some Twig 3 change?) but it's happening because the value is passed through escapeValue.
You could always remove the validate from the element, but of course... that's probably a bad idea.
function my_module_form_entity_embed_dialog_alter(&$form, FormStateInterface $form_state, $form_id) {
$storage = $form_state->getStorage();
// On step three of the modal form remove validation from the caption field.
if (isset($storage['step']) && $storage['step'] === 'embed') {
if (isset($storage['entity_element']['data-caption'])) {
unset($form['attributes']['data-caption']['#element_validate']);
}
}
}
Note: We should probably pin the standalone library at a specific release rather than "latest"
ericpugh β created an issue.
ericpugh β created an issue.
My only role on this project was upgrading for the last version, so I hope the other maintainers don't mind me swapping @shelane out with myself as I'm no longer using this module on a regular basis