Skip to content

Commit ce348cb

Browse files
authored
IBX-7276: Renamed ibexa_get_current_user Twig function to ibexa_current_user (#307)
1 parent 9111b08 commit ce348cb

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/lib/MVC/Symfony/Templating/Twig/Extension/UserExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getFunctions(): array
3030
{
3131
return [
3232
new TwigFunction(
33-
'ibexa_get_current_user',
33+
'ibexa_current_user',
3434
[$this, 'getCurrentUser']
3535
),
3636
new TwigFunction(
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
--TEST--
2+
"ibexa_current_user" function
3+
--TEMPLATE--
4+
{{ ibexa_current_user().getUserId() }}
5+
--DATA--
6+
return [];
7+
--EXPECT--
8+
10

tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/user_functions/ibexa_get_current_user.test

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)