FileViewHelper extends AbstractTagBasedViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:link.file>
FinalYes
ViewHelper for creating links to a file (FAL).
<f:link.file file="{file}" target="_blank" download="true" filename="some-file.pdf">See file</f:link.file>
Tags
Table of Contents
Properties
- $tagName : string
Methods
- initializeArguments() : void
- render() : string
- createFileDumpUrl() : string
- Create a file dump URL, taking the view helper arguments into account
- getAlternativeFilename() : string
Properties
$tagName
protected
string
$tagName
= 'a'
Methods
initializeArguments()
public
initializeArguments() : void
render()
public
render() : string
Return values
stringcreateFileDumpUrl()
Create a file dump URL, taking the view helper arguments into account
protected
createFileDumpUrl(FileInterface $file) : string
Parameters
- $file : FileInterface
Return values
stringgetAlternativeFilename()
protected
getAlternativeFilename(FileInterface $file) : string
Parameters
- $file : FileInterface