PHP Class Neos\Media\ViewHelpers\FileTypeIconViewHelper

= Examples = (depending on the asset, no scaling applied) filetype alt text
Inheritance: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractTagBasedViewHelper
Mostrar archivo Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$resourceManager Neos\Flow\ResourceManagement\ResourceManager
$tagName string name of the tag to be created by this view helper

Public Methods

Method Description
initializeArguments ( ) : void
render ( Neos\Media\Domain\Model\AssetInterface $file, integer | null $width = null, integer | null $height = null ) : string Renders an HTML tag for a filetype icon for a given Neos.Media's asset instance

Method Details

initializeArguments() public method

public initializeArguments ( ) : void
return void

render() public method

Renders an HTML tag for a filetype icon for a given Neos.Media's asset instance
public render ( Neos\Media\Domain\Model\AssetInterface $file, integer | null $width = null, integer | null $height = null ) : string
$file Neos\Media\Domain\Model\AssetInterface
$width integer | null
$height integer | null
return string

Property Details

$resourceManager protected_oe property

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
return Neos\Flow\ResourceManagement\ResourceManager

$tagName protected_oe property

name of the tag to be created by this view helper
protected string $tagName
return string