TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
FormatsViewHelper Class Reference
Inheritance diagram for FormatsViewHelper:
AbstractViewHelper

Public Member Functions

 initializeArguments ()
 
- Public Member Functions inherited from AbstractViewHelper
 setRenderingContext (\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 prepareArguments ()
 

Static Protected Member Functions

static getIconForFileExtension ($extension, IconFactory $iconFactory)
 

Protected Attributes

 $escapeOutput = false
 
- Protected Attributes inherited from AbstractViewHelper
 $controllerContext
 
 $objectManager
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractViewHelper
 callRenderMethod ()
 
 getLogger ()
 
 registerRenderMethodArguments ()
 

Detailed Description

ViewHelper to display all download links for a document

Example: <doc:formats document="{document}" />

Definition at line 32 of file FormatsViewHelper.php.

Member Function Documentation

static getIconForFileExtension (   $extension,
IconFactory  $iconFactory 
)
staticprotected

Returns the icon associated to a given file extension (privileging black and white).

Parameters
IconFactory$iconFactory
string$extension
Returns
string

Definition at line 118 of file FormatsViewHelper.php.

References IconFactory\getIconForFileExtension(), and Icon\SIZE_SMALL.

initializeArguments ( )

Initializes the arguments

Exceptions
TYPO3Fluid

Definition at line 48 of file FormatsViewHelper.php.

Member Data Documentation

$escapeOutput = false
protected

Definition at line 41 of file FormatsViewHelper.php.