Added some more useful variables to the twig label generator

This commit is contained in:
Jan Böhmer 2024-03-06 21:11:31 +01:00
parent dff1ef04bf
commit 38b5a84c4f
2 changed files with 14 additions and 7 deletions

View file

@ -86,8 +86,11 @@ final class LabelHTMLGenerator
[
'element' => $element,
'page' => $page,
'last_page' => count($elements),
'user' => $current_user,
'install_title' => $this->partdb_title,
'paper_width' => $options->getWidth(),
'paper_height' => $options->getHeight(),
]
);
} catch (Error $exception) {