Skip to content

Added custom HTML block for raw HTML or view insertions into form.#5

Draft
gtrinkwon wants to merge 1 commit intomainfrom
feature/custom-html-block
Draft

Added custom HTML block for raw HTML or view insertions into form.#5
gtrinkwon wants to merge 1 commit intomainfrom
feature/custom-html-block

Conversation

@gtrinkwon
Copy link
Member

Called in the form builder like so:

            ->add('custom_block', CustomHtmlBlockType::class, [
                'html' => '',
                'view' => view('path.to.template', [
                    'my_twig_variable' => 'foobar'
                ])
            ])

@gtrinkwon gtrinkwon requested a review from simonrjones March 18, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant