Question2

 An Adobe Commerce developer has been asked to create a custom Page
Builder content type to render a grid of tiles showing available categories

that can be clicked to navigate to the resulting product listing page. This

content type accepts parameters to determine which categories to

display. The client has asked that the User be able to see the resulting

tiles appear in the Stage after the settings on the content type have been

saved.

How can this be accomplished?


a) Create a custom controller and layout to generate the resulting markup based on the provided parameters and call it via AJAX from the `preview.js` file.
 

b) Override the `afterObservablesUpdated` method of the `preview.js` file and call the `getPreview('content-type-name')` method from `Magento_PageBuilder/js/config`, where `content-type-name` is the name of the custom content type.
 

c) Create a renderer that implements `\Magento\PageBuilder\Model\Stage\RendererInterface` and use `di.xml` to add it to the `renderers` argument of `Magento\PageBuilder\Model\Stage\RendererPool`.

 

Ans : c