class DocumentUrlGenerator (View source)

Methods

__construct(RequestStack $requestStack, Packages $packages, UrlGeneratorInterface $urlGenerator, DocumentInterface $document = null, array $options = [])

DocumentUrlGenerator constructor.

setOptions(array $options = [])

No description

getDocument()

No description

getUrl($absolute = false)

No description

string
getRouteName()

No description

string
getProcessedDocumentUrlByArray(int $referenceType = SymfonyUrlGeneratorInterface::ABSOLUTE_PATH)

No description

Details

__construct(RequestStack $requestStack, Packages $packages, UrlGeneratorInterface $urlGenerator, DocumentInterface $document = null, array $options = [])

DocumentUrlGenerator constructor.

Parameters

RequestStack $requestStack
Packages $packages
UrlGeneratorInterface $urlGenerator
DocumentInterface $document
array $options

setOptions(array $options = [])

Parameters

array $options

DocumentInterface getDocument()

Return Value

DocumentInterface

DocumentUrlGenerator setDocument(DocumentInterface $document)

Parameters

DocumentInterface $document

Return Value

DocumentUrlGenerator

getUrl($absolute = false)

Parameters

$absolute

protected string getRouteName()

Return Value

string

protected string getProcessedDocumentUrlByArray(int $referenceType = SymfonyUrlGeneratorInterface::ABSOLUTE_PATH)

Parameters

int $referenceType The type of reference to be generated (one of the UrlGeneratorInterface constants)

Return Value

string