Guides

RelativeUrlGenerator extends AbstractUrlGenerator
in package

FinalYes

Table of Contents

Properties

$documentNameResolver  : DocumentNameResolverInterface

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

Methods

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
string

generateCanonicalOutputUrl()

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
string

generateInternalPathFromRelativeUrl()

public generateInternalPathFromRelativeUrl(RenderContext $renderContext, string $canonicalUrl) : string
Parameters
$renderContext : RenderContext
$canonicalUrl : string
Return values
string

isRelativeUrl()

private isRelativeUrl(string $url) : bool
Parameters
$url : string
Return values
bool

        
On this page

Search results