0

where i can find an example to add html content in my form using ModifierInterface. Or how to add part of ui_configuration in that modifier?

1 Answer 1

2

Find out. Here is an example:

'elementName' => [
    'arguments' => [
        'data' => [
            'config' => [
                'componentType' => 'htmlContent',
            ]
        ],
        'block' => $this->blockFactory->createBlock(
            'YourBlockClassName'
        )
     ]
 ]
1
  • Great! That helped me a lot. One question @styopchik, do you know in the block how to get form element value?
    – jony974
    Mar 18, 2020 at 7:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.