Added label placeholders to add a barcode version of the IPN to a label

This fixes issue #373
This commit is contained in:
Jan Böhmer 2023-11-05 21:24:21 +01:00
parent 3c52e57a44
commit 5e326bca12
9 changed files with 243 additions and 60 deletions

View file

@ -76,11 +76,11 @@ final class BarcodeContentGenerator
{
$type = $this->classToString(self::URL_MAP, $target);
return $this->urlGenerator->generate('scan_qr', [
'type' => $type,
return $this->urlGenerator->generate('scan_qr', [
'type' => $type,
'id' => $target->getID() ?? 0,
'_locale' => null,
], UrlGeneratorInterface::ABSOLUTE_URL);
], UrlGeneratorInterface::ABSOLUTE_URL);
}
/**