hook_block_type_form_alter don't return #validate and #submit for layout builder blocks

Created on 8 October 2021, about 3 years ago
Updated 19 October 2023, about 1 year ago

Problem/Motivation

If I use hook_block_type_form_alter() to alter a layout builder block it don't return #validate or #submit in $form variable. However for a normal block(created using block layout) it does return all the form values including #validate and #submit. So I am not able to add a custom validation or submit function to layout builder block forms. And even if I try to add $form['#validate] [] = 'validateMyBlock'; it's not working.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India sj.suraj

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024