TemplatePaths

class \TYPO3\CMS\Fluid\View\TemplatePaths

Extends
TemplatePaths

Custom implementation for template paths resolving, one which differs from the base implementation in that it is capable of resolving template paths based on TypoScript configuration when given a package name, and is aware of the Frontend/Backend contexts of TYPO3.

Table of Contents

Methods

fillDefaultsByPackageName()  : void
Fills the path arrays with defaults, by package name.
getTemplatePathAndFilename()  : string|null
Get absolute path to template file
setLayoutRootPaths()  : void
Overridden setter with enforced sorting behavior
setPartialRootPaths()  : void
Overridden setter with enforced sorting behavior
setTemplateRootPaths()  : void
Overridden setter with enforced sorting behavior
ensureAbsolutePath()  : string
Guarantees that $reference is turned into a correct, absolute path. The input can be a relative path or a FILE: or EXT: reference but cannot be a FAL resource identifier.
getContextSpecificViewConfiguration()  : array
getExtensionPrivateResourcesPath()  : string|null

Methods

fillDefaultsByPackageName()

Fills the path arrays with defaults, by package name.

public fillDefaultsByPackageName(string $packageName) : void

Deprecated

since TYPO3 v13, will be removed in v14. Also removed in Fluid standalone v4.

Reads those defaults from TypoScript if possible and if not defined, uses fallback paths by convention.

Parameters

$packageName : string

getTemplatePathAndFilename()

Get absolute path to template file

public getTemplatePathAndFilename() : string|null

Return values

string|null —

Returns the absolute path to a Fluid template file

setLayoutRootPaths()

Overridden setter with enforced sorting behavior

public setLayoutRootPaths(array $layoutRootPaths) : void

Parameters

$layoutRootPaths : array

setPartialRootPaths()

Overridden setter with enforced sorting behavior

public setPartialRootPaths(array $partialRootPaths) : void

Parameters

$partialRootPaths : array

setTemplateRootPaths()

Overridden setter with enforced sorting behavior

public setTemplateRootPaths(array $templateRootPaths) : void

Parameters

$templateRootPaths : array

ensureAbsolutePath()

Guarantees that $reference is turned into a correct, absolute path. The input can be a relative path or a FILE: or EXT: reference but cannot be a FAL resource identifier.

protected ensureAbsolutePath(string $reference) : string

Parameters

$reference : string

Return values

string

getContextSpecificViewConfiguration()

protected getContextSpecificViewConfiguration(string $extensionKey) : array

Deprecated

Remove in v14 along with fillDefaultsByPackageName()

Parameters

$extensionKey : string

Return values

array

getExtensionPrivateResourcesPath()

protected getExtensionPrivateResourcesPath(string $extensionKey) : string|null

Deprecated

Remove in v14 along with fillDefaultsByPackageName()

Parameters

$extensionKey : string

Return values

string|null
On this page