RelativeUrlGenerator
extends AbstractUrlGenerator
in package
FinalYes
Table of Contents
Properties
Methods
- __construct() : mixed
- createFileUrl() : string
- Create a url with a file ending derived from the output format
- generateCanonicalOutputUrl() : string
- Generate a canonical output URL with the configured file extension and anchor
- generateInternalPathFromRelativeUrl() : string
- generateInternalUrl() : string
- getCurrentFileUrl() : string
- isRelativeUrl() : bool
Properties
$documentNameResolver read-only
private
DocumentNameResolverInterface
$documentNameResolver
Methods
__construct()
public
__construct(DocumentNameResolverInterface $documentNameResolver) : mixed
Parameters
- $documentNameResolver : DocumentNameResolverInterface
createFileUrl()
Create a url with a file ending derived from the output format
public
createFileUrl(RenderContext $context, string $filename[, string|null $anchor = null ]) : string
Parameters
- $context : RenderContext
- $filename : string
- $anchor : string|null = null
Return values
stringgenerateCanonicalOutputUrl()
Generate a canonical output URL with the configured file extension and anchor
public
generateCanonicalOutputUrl(RenderContext $context, string $reference[, string|null $anchor = null ]) : string
Parameters
- $context : RenderContext
- $reference : string
- $anchor : string|null = null
Return values
stringgenerateInternalPathFromRelativeUrl()
public
generateInternalPathFromRelativeUrl(RenderContext $renderContext, string $canonicalUrl) : string
Parameters
- $renderContext : RenderContext
- $canonicalUrl : string
Return values
stringgenerateInternalUrl()
public
generateInternalUrl(RenderContext $renderContext, string $canonicalUrl) : string
Parameters
- $renderContext : RenderContext
- $canonicalUrl : string
Return values
stringgetCurrentFileUrl()
public
getCurrentFileUrl(RenderContext $renderContext) : string
Parameters
- $renderContext : RenderContext
Return values
stringisRelativeUrl()
private
isRelativeUrl(string $url) : bool
Parameters
- $url : string