class FileTypeIconViewHelper extends AbstractTagBasedViewHelper (View source)

Renders an HTML tag for a file type icon for a given Neos.Media's asset instance

= Examples =

<output>
(depending on the asset, no scaling applied)
<img src="_Resources/Static/Packages/Neos/Media/Icons/16px/jpg.png" height="16" alt="file type alt text" />
</output>

<code title="Rendering a file type icon by given filename">
<neos.media:fileTypeIcon filename="{someFilename}" height="16" />
(depending on the asset, no scaling applied) file type alt text

Properties

protected ResourceManager $resourceManager
protected string $tagName

name of the tag to be created by this view helper

Methods

void
initializeArguments()

No description

string
render()

Renders an HTML tag for a file type icon for a given Neos.Media's asset instance

Details

void initializeArguments()

No description

Return Value

void

Exceptions

Exception

string render()

Renders an HTML tag for a file type icon for a given Neos.Media's asset instance

Return Value

string