Skip to content
Snippets Groups Projects
  • Jaime Pérez Crespo's avatar
    Create a new "configpage" hook for those modules that need to inject anything... · d42f26f3
    Jaime Pérez Crespo authored
    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.
    d42f26f3
Code owners
Assign users and groups as approvers for specific file changes. Learn more.