Added buttons for revert and undo to the log detail page

This commit is contained in:
Jan Böhmer 2023-05-15 00:16:49 +02:00
parent b62fd602f2
commit 49b6a42791
5 changed files with 111 additions and 1 deletions

View file

@ -71,6 +71,8 @@ final class EntityExtension extends AbstractExtension
new TwigFunction('entity_type', [$this, 'getEntityType']),
/* Returns the URL to the given entity */
new TwigFunction('entity_url', [$this, 'generateEntityURL']),
/* Returns the URL to the given entity in timetravel mode */
new TwigFunction('timetravel_url', [$this->entityURLGenerator, 'timetravelURL']),
/* Generates a JSON array of the given tree */
new TwigFunction('tree_data', [$this, 'treeData']),