XF 2.2 Can an event listener hint contain a wildcard/variable?

Nulumia

Well-known member
When using templater_template_post_render, is it possible to specify a wildcard when template names are dynamically created, for example custom_template.1.less, custom_template.2.less?
 
No, event listeners are exact matches only. In your case, don't specify a hint and instead do checks on the passed $template name (bailing early if it's not a template you care about).
 
No, event listeners are exact matches only. In your case, don't specify a hint and instead do checks on the passed $template name (bailing early if it's not a template you care about).
Thanks for verifying, I was worried going a route like that would cause a small hit just loading up and performing the check 😦.
 
Top Bottom