\Endroid\QrCode\Twig\ExtensionQrCodeExtension

Summary

Methods
Properties
Constants
__construct()
getFunctions()
qrcodeUrlFunction()
qrCodePathFunction()
getQrCodeReference()
qrcodeDataUriFunction()
getName()
No public properties found
No constants found
No protected methods found
$qrCodeFactory
$router
N/A
No private methods found
No private properties found
N/A

Properties

$qrCodeFactory

$qrCodeFactory : \Endroid\QrCode\Factory\QrCodeFactory

Type

QrCodeFactory

$router

$router : \Symfony\Component\Routing\RouterInterface

Type

\Symfony\Component\Routing\RouterInterface —

Methods

__construct()

__construct(\Endroid\QrCode\Factory\QrCodeFactory  $qrCodeFactory, \Symfony\Component\Routing\RouterInterface  $router) : mixed

Parameters

\Endroid\QrCode\Factory\QrCodeFactory $qrCodeFactory
\Symfony\Component\Routing\RouterInterface $router

Returns

mixed —

getFunctions()

getFunctions() : mixed

{@inheritdoc}

Returns

mixed —

qrcodeUrlFunction()

qrcodeUrlFunction(string  $text, array  $options = []) : string

Parameters

string $text
array $options

Returns

string —

qrCodePathFunction()

qrCodePathFunction(string  $text, array  $options = []) : string

Parameters

string $text
array $options

Returns

string —

getQrCodeReference()

getQrCodeReference(string  $text, array  $options = [], int  $referenceType) : string

Parameters

string $text
array $options
int $referenceType

Returns

string —

qrcodeDataUriFunction()

qrcodeDataUriFunction(string  $text, array  $options = []) : string

Parameters

string $text
array $options

Throws

\Endroid\QrCode\Exception\UnsupportedExtensionException

Returns

string —

getName()

getName() : string

Returns

string —