\Endroid\QrCode\Twig\ExtensionQrCodeExtension

Summary

Methods
Properties
Constants
getTokenParsers()
getNodeVisitors()
getFilters()
getTests()
getFunctions()
getOperators()
__construct()
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

$router

$router : \Symfony\Component\Routing\RouterInterface

Type

\Symfony\Component\Routing\RouterInterface

Methods

getTokenParsers()

getTokenParsers() : array<mixed,\Twig_TokenParserInterface>

Returns the token parser instances to add to the existing list.

Returns

array<mixed,\Twig_TokenParserInterface>

getNodeVisitors()

getNodeVisitors() : array<mixed,\Twig_NodeVisitorInterface>

Returns the node visitor instances to add to the existing list.

Returns

array<mixed,\Twig_NodeVisitorInterface>

getFilters()

getFilters() : array<mixed,\Twig_Filter>

Returns a list of filters to add to the existing list.

Returns

array<mixed,\Twig_Filter>

getTests()

getTests() : array<mixed,\Twig_Test>

Returns a list of tests to add to the existing list.

Returns

array<mixed,\Twig_Test>

getFunctions()

getFunctions() : array<mixed,\Twig_Function>

Returns a list of functions to add to the existing list.

Returns

array<mixed,\Twig_Function>

getOperators()

getOperators() : \array<array>

Returns a list of operators to add to the existing list.

Returns

\array

First array of unary operators, second array of binary operators

__construct()

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

Parameters

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

qrcodeUrlFunction()

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

Parameters

string $text
array $options

Returns

string

qrCodePathFunction()

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

Parameters

string $text
array $options

Returns

string

getQrCodeReference()

getQrCodeReference(string  $text, array  $options = array(), integer  $referenceType) : string

Parameters

string $text
array $options
integer $referenceType

Returns

string

qrcodeDataUriFunction()

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

Parameters

string $text
array $options

Throws

\Endroid\QrCode\Exception\UnsupportedExtensionException

Returns

string

getName()

getName() : string

Returns

string