getEntityDisplayName to get entityID's name for display
Reimplement getPreferredTranslation outside of IdPDisco so it's reusable and much more complete. The new method will search the current, default and fallback language for a displayable string in various metadata fields. This should be much more complete and robust than previous approches. Make it a Twig filter so it can also be used there.
Showing
- lib/SimpleSAML/IdP.php 2 additions, 0 deletionslib/SimpleSAML/IdP.php
- lib/SimpleSAML/Locale/Language.php 21 additions, 5 deletionslib/SimpleSAML/Locale/Language.php
- lib/SimpleSAML/XHTML/IdPDisco.php 3 additions, 39 deletionslib/SimpleSAML/XHTML/IdPDisco.php
- lib/SimpleSAML/XHTML/Template.php 43 additions, 0 deletionslib/SimpleSAML/XHTML/Template.php
- tests/lib/SimpleSAML/Locale/LanguageTest.php 23 additions, 0 deletionstests/lib/SimpleSAML/Locale/LanguageTest.php
- tests/lib/SimpleSAML/XHTML/TemplateTest.php 114 additions, 0 deletionstests/lib/SimpleSAML/XHTML/TemplateTest.php
Loading
Please register or sign in to comment