Skip to content
Snippets Groups Projects
  1. Aug 22, 2020
  2. Jun 13, 2020
  3. Feb 15, 2020
  4. Feb 11, 2019
  5. Nov 27, 2018
  6. Nov 23, 2018
    • 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.
Loading