Skip to content

Commit

Permalink
IBX-7276: Renamed ibexa_get_current_user Twig function to ibexa_curre…
Browse files Browse the repository at this point in the history
…nt_user (#307)
  • Loading branch information
adamwojs authored Dec 13, 2023
1 parent 9111b08 commit ce348cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getFunctions(): array
{
return [
new TwigFunction(
'ibexa_get_current_user',
'ibexa_current_user',
[$this, 'getCurrentUser']
),
new TwigFunction(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--TEST--
"ibexa_current_user" function
--TEMPLATE--
{{ ibexa_current_user().getUserId() }}
--DATA--
return [];
--EXPECT--
10

This file was deleted.

0 comments on commit ce348cb

Please sign in to comment.