Skip to content
Snippets Groups Projects
Unverified Commit d42f26f3 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Create a new "configpage" hook for those modules that need to inject anything...

Create a new "configpage" hook for those modules that need to inject anything in the configuration page.

This allows us to change the signature of the hook, so that we pass it the \SimpleSAML\XHTML\Template object and then the hook can not only add data to be passed to the twig template, but also add its own translation domain. This was needed because many modules were putting their translations inside "core", and when moving those to the modules themselves, the new translation system cannot perform the translation because only the translations for the current module in use are loaded (in the config page, that's the core module). Therefore, we needed a way to get the Localization instance from the template, and a way to pass that to the hook so that the hook can register the translations for its own module.
parent 409862ba
No related branches found
No related tags found
No related merge requests found
Showing
with 106 additions and 71 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment