Since the new QueryType controller has been introduce for override rules in eZ Platform, it's not possible any more to use ParamProvider to inject new variable in a template.
Debugger step by step is well going through paramProvider PHP function but array of variables returned are not taken in account.
In the final template, if we dump my_provider set in the override rule, we get the text of the paramProvider conf.
So, within the site.html.twig template, we've got that result:
array:1 [
"provider" => "footer_provider"
]
so, now, paramProvider is not replace by it's returned value from PHP code, but as a text variable.
(And even if not using the QueryType syntax)
Since the new QueryType controller has been introduce for override rules in eZ Platform, it's not possible any more to use ParamProvider to inject new variable in a template. Debugger step by step is well going through paramProvider PHP function but array of variables returned are not taken in account.
In the final template, if we dump my_provider set in the override rule, we get the text of the paramProvider conf. So, within the site.html.twig template, we've got that result:
so, now, paramProvider is not replace by it's returned value from PHP code, but as a text variable. (And even if not using the QueryType syntax)