‪TYPO3CMS  ‪main
TYPO3\CMS\Fluid\View\TemplatePaths Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\View\TemplatePaths:

Public Member Functions

 fillDefaultsByPackageName ($packageName)
 setTemplateRootPaths (array $templateRootPaths)
 setLayoutRootPaths (array $layoutRootPaths)
 setPartialRootPaths (array $partialRootPaths)
string getTemplatePathAndFilename ()

Protected Member Functions

 getExtensionPrivateResourcesPath (string $extensionKey)
 getConfigurationManager ()
 getContextSpecificViewConfiguration (string $extensionKey)
 ensureAbsolutePath ($reference)
 isBackendMode ()
 isFrontendMode ()

Protected Attributes

string $templateSource
string $templatePathAndFilename

Detailed Description

Class 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.

This is for internal Fluid use only.

Definition at line 38 of file TemplatePaths.php.

Member Function Documentation

◆ ensureAbsolutePath()

TYPO3\CMS\Fluid\View\TemplatePaths::ensureAbsolutePath (   $reference)

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.

string | array$reference

Definition at line 172 of file TemplatePaths.php.

References TYPO3\CMS\Core\Utility\PathUtility\isAbsolutePath().

◆ fillDefaultsByPackageName()

TYPO3\CMS\Fluid\View\TemplatePaths::fillDefaultsByPackageName (   $packageName)

Fills the path arrays with defaults, by package name. Reads those defaults from TypoScript if possible and if not defined, uses fallback paths by convention.


Definition at line 119 of file TemplatePaths.php.

References TYPO3\CMS\Fluid\View\TemplatePaths\getContextSpecificViewConfiguration().

◆ getConfigurationManager()

TYPO3\CMS\Fluid\View\TemplatePaths::getConfigurationManager ( )

◆ getContextSpecificViewConfiguration()

◆ getExtensionPrivateResourcesPath()

TYPO3\CMS\Fluid\View\TemplatePaths::getExtensionPrivateResourcesPath ( string  $extensionKey)

◆ getTemplatePathAndFilename()

string TYPO3\CMS\Fluid\View\TemplatePaths::getTemplatePathAndFilename ( )

Get absolute path to template file

‪string Returns the absolute path to a Fluid template file

Definition at line 159 of file TemplatePaths.php.

References TYPO3\CMS\Fluid\View\TemplatePaths\$templatePathAndFilename.

◆ isBackendMode()

TYPO3\CMS\Fluid\View\TemplatePaths::isBackendMode ( )

◆ isFrontendMode()

TYPO3\CMS\Fluid\View\TemplatePaths::isFrontendMode ( )

◆ setLayoutRootPaths()

TYPO3\CMS\Fluid\View\TemplatePaths::setLayoutRootPaths ( array  $layoutRootPaths)

Overridden setter with enforced sorting behavior

Definition at line 137 of file TemplatePaths.php.

◆ setPartialRootPaths()

TYPO3\CMS\Fluid\View\TemplatePaths::setPartialRootPaths ( array  $partialRootPaths)

Overridden setter with enforced sorting behavior

Definition at line 147 of file TemplatePaths.php.

◆ setTemplateRootPaths()

TYPO3\CMS\Fluid\View\TemplatePaths::setTemplateRootPaths ( array  $templateRootPaths)

Overridden setter with enforced sorting behavior

Definition at line 127 of file TemplatePaths.php.

Member Data Documentation

◆ $templatePathAndFilename

string TYPO3\CMS\Fluid\View\TemplatePaths::$templatePathAndFilename

◆ $templateSource

string TYPO3\CMS\Fluid\View\TemplatePaths::$templateSource

Definition at line 42 of file TemplatePaths.php.