[Favourite] Add backend support for favourite

This commit is contained in:
rainydaysavings
2020-09-04 15:18:58 +01:00
committed by Hugo Sales
parent b6fb0255da
commit 8a0418d8cf
4 changed files with 87 additions and 10 deletions

View File

@@ -49,6 +49,7 @@ class Extension extends AbstractExtension
/** Twig function to output the 'active' class if the current route matches the given route */
new TwigFunction('active', [Runtime::class, 'isCurrentRouteActive']),
new TwigFunction('is_route', [Runtime::class, 'isCurrentRoute']),
new TwigFunction('get_note_actions', [Runtime::class, 'getNoteActions']),
];
}
}