Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
29985adf
Commit
29985adf
authored
3 years ago
by
Thijs Kinkhorst
Browse files
Options
Downloads
Patches
Plain Diff
Make getEntityDisplayName available as a filter
parent
213add97
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/SimpleSAML/IdP.php
+1
-1
1 addition, 1 deletion
lib/SimpleSAML/IdP.php
lib/SimpleSAML/XHTML/Template.php
+7
-0
7 additions, 0 deletions
lib/SimpleSAML/XHTML/Template.php
with
8 additions
and
1 deletion
lib/SimpleSAML/IdP.php
+
1
−
1
View file @
29985adf
...
@@ -169,7 +169,7 @@ class IdP
...
@@ -169,7 +169,7 @@ class IdP
/**
/**
* Get SP name.
* Get SP name.
* Only use
f
d in IFrameLogout it seems.
* Only used in IFrameLogout it seems.
* TODO: probably replace with template Template::getEntityDisplayName()
* TODO: probably replace with template Template::getEntityDisplayName()
*
*
* @param string $assocId The association identifier.
* @param string $assocId The association identifier.
...
...
This diff is collapsed.
Click to expand it.
lib/SimpleSAML/XHTML/Template.php
+
7
−
0
View file @
29985adf
...
@@ -325,6 +325,13 @@ class Template extends Response
...
@@ -325,6 +325,13 @@ class Template extends Response
[
'needs_context'
=>
true
]
[
'needs_context'
=>
true
]
)
)
);
);
// add a filter for preferred entity name
$twig
->
addFilter
(
new
TwigFilter
(
'entityDisplayName'
,
[
$this
,
'getEntityDisplayName'
],
)
);
// add an asset() function
// add an asset() function
$twig
->
addFunction
(
new
TwigFunction
(
'asset'
,
[
$this
,
'asset'
]));
$twig
->
addFunction
(
new
TwigFunction
(
'asset'
,
[
$this
,
'asset'
]));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment