Send params to widgets

sirready

Member
Registered
Joined
Feb 17, 2023
Messages
7
Points
3

Reputation:

Hello everyone,

I am developing an addon and I need a way to display custom data based on params.

Unfortunately, the render function for the within widgets doesn't take param Bag
PHP:
 render(ParameterBag $params)

The idea:
My URL is /something/1/4
Based on the params which are 1 and 4 I need to fetch and render specific data. I have my repository file taking care of the functionality, the missing part is how to let the widget know what to use.

Thank you
 
Top