Content Widgets

Content Widgets enable you to render any html text generated by your custom PHP code, such as a marketing banner or a contact form.

How to Create Content Widget Type

You can read documentation on how to add custom content widget type in the tutorial.

How to Support Content Widgets in Custom Content

To support widgets in any text, you should apply the render_content filter in a twig template.

For example:

{{ entity.content | oro_html_sanitize | render_content }}