Skip to content
Snippets Groups Projects
Commit 29985adf authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Make getEntityDisplayName available as a filter

parent 213add97
No related branches found
No related tags found
No related merge requests found
......@@ -169,7 +169,7 @@ class IdP
/**
* Get SP name.
* Only usefd in IFrameLogout it seems.
* Only used in IFrameLogout it seems.
* TODO: probably replace with template Template::getEntityDisplayName()
*
* @param string $assocId The association identifier.
......
......@@ -325,6 +325,13 @@ class Template extends Response
['needs_context' => true]
)
);
// add a filter for preferred entity name
$twig->addFilter(
new TwigFilter(
'entityDisplayName',
[$this, 'getEntityDisplayName'],
)
);
// add an asset() function
$twig->addFunction(new TwigFunction('asset', [$this, 'asset']));
......
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