Property | Type | Description | |
---|---|---|---|
$cacheCleared | boolean | ||
$cachedDependencies | array | ||
$configurationManager | TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface | ||
$objectManager | TYPO3\CMS\Extbase\Object\ObjectManagerInterface | ||
$settingsCache | array | ||
$typoScriptAssetsBuilt | boolean |
Method | Description | |
---|---|---|
buildAll ( array $parameters, object $caller, boolean $cached = true ) : void | ||
buildAllUncached ( array $parameters, object $caller ) : void | ||
clearCacheCommand ( array $parameters ) : void | ||
getSettings ( ) : array | Returns the settings used by this particular Asset during inclusion. Public access allows later inspection of the TypoScript values which were applied to the Asset. | |
injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void | ||
injectObjectManager ( TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager ) : void | ||
usePageCache ( object $caller, boolean $shouldUsePageCache ) : boolean |
Method | Description | |
---|---|---|
assertAssetAllowedInFooter ( mixed $asset ) : boolean | ||
buildAsset ( mixed $asset ) : string | ||
buildAssetsChunk ( array $assets ) : string | ||
copyReferencedFilesAndReplacePaths ( string $contents, string $regex, string $originalDirectory, string $wrap = '|' ) : string | Finds and replaces all URLs by using a given regex | |
detectAndCopyFileReferences ( string $contents, string $originalDirectory ) : string | Fixes the relative paths inside of url() references in CSS files | |
extractAssetContent ( mixed $asset ) : string | ||
extractAssetSettings ( mixed $asset ) : array | ||
generateTagForAssetType ( string $type, string $content, string $file = null, string $integrity = null ) : string | ||
getFileIntegrity ( $file ) : string | ||
insertAssetsAtMarker ( string $markerName, mixed $assets ) : void | ||
manipulateAssetsByTypoScriptSettings ( array $assets ) : array | ||
mergeArrays ( $array1, $array2 ) : array | ||
placeAssetsInHeaderAndFooter ( FluidTYPO3\Vhs\ViewHelpers\Asset\AssetInterface[] $assets, boolean $cached ) : void | ||
prefixPath ( string $fileRelativePathAndFilename ) : string | Prefix a path according to "absRefPrefix" TS configuration. | |
renderAssetAsFluidTemplate ( mixed $asset ) : string | ||
sortAssetsByDependency ( FluidTYPO3\Vhs\ViewHelpers\Asset\AssetInterface[] $assets ) : FluidTYPO3\Vhs\ViewHelpers\Asset\AssetInterface[] | ||
writeCachedMergedFileAndReturnTag ( FluidTYPO3\Vhs\ViewHelpers\Asset\AssetInterface[] $assets, string $type ) : string | ||
writeFile ( string $file, string $contents ) |
protected buildAsset ( mixed $asset ) : string | ||
$asset | mixed | An Asset ViewHelper instance or an array containing an Asset definition |
return | string |
protected buildAssetsChunk ( array $assets ) : string | ||
$assets | array | |
return | string |
public clearCacheCommand ( array $parameters ) : void | ||
$parameters | array | |
return | void |
protected copyReferencedFilesAndReplacePaths ( string $contents, string $regex, string $originalDirectory, string $wrap = '|' ) : string | ||
$contents | string | Data to process |
$regex | string | Regex used to find URLs in content |
$originalDirectory | string | Original location to CSS file, if file based. |
$wrap | string | Wrap around replaced values |
return | string | Processed data |
protected extractAssetContent ( mixed $asset ) : string | ||
$asset | mixed | |
return | string |
protected extractAssetSettings ( mixed $asset ) : array | ||
$asset | mixed | An Asset ViewHelper instance or an array containing an Asset definition |
return | array |
protected getFileIntegrity ( $file ) : string | ||
$file | ||
return | string |
public getSettings ( ) : array | ||
return | array |
public injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void | ||
$configurationManager | TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface | |
return | void |
public injectObjectManager ( TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager ) : void | ||
$objectManager | TYPO3\CMS\Extbase\Object\ObjectManagerInterface | |
return | void |
protected manipulateAssetsByTypoScriptSettings ( array $assets ) : array | ||
$assets | array | |
return | array |
protected mergeArrays ( $array1, $array2 ) : array | ||
$array1 | ||
$array2 | ||
return | array |
protected prefixPath ( string $fileRelativePathAndFilename ) : string | ||
$fileRelativePathAndFilename | string | |
return | string |
protected renderAssetAsFluidTemplate ( mixed $asset ) : string | ||
$asset | mixed | |
return | string |
protected sortAssetsByDependency ( FluidTYPO3\Vhs\ViewHelpers\Asset\AssetInterface[] $assets ) : FluidTYPO3\Vhs\ViewHelpers\Asset\AssetInterface[] | ||
$assets | FluidTYPO3\Vhs\ViewHelpers\Asset\AssetInterface[] | |
return | FluidTYPO3\Vhs\ViewHelpers\Asset\AssetInterface[] |
protected writeCachedMergedFileAndReturnTag ( FluidTYPO3\Vhs\ViewHelpers\Asset\AssetInterface[] $assets, string $type ) : string | ||
$assets | FluidTYPO3\Vhs\ViewHelpers\Asset\AssetInterface[] | |
$type | string | |
return | string |
protected static array $cachedDependencies | ||
return | array |
protected ConfigurationManagerInterface,TYPO3\CMS\Extbase\Configuration $configurationManager | ||
return | TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface |
protected ObjectManagerInterface,TYPO3\CMS\Extbase\Object $objectManager | ||
return | TYPO3\CMS\Extbase\Object\ObjectManagerInterface |
protected static bool $typoScriptAssetsBuilt | ||
return | boolean |