PHP Class Neos\Media\ViewHelpers\FileTypeIconViewHelper

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

Protected Properties

Свойство Type Description
$resourceManager Neos\Flow\ResourceManagement\ResourceManager
$tagName string name of the tag to be created by this view helper

Méthodes publiques

Méthode 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 méthode

public initializeArguments ( ) : void
Résultat void

render() public méthode

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
Résultat string

Property Details

$resourceManager protected_oe property

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
Résultat Neos\Flow\ResourceManagement\ResourceManager

$tagName protected_oe property

name of the tag to be created by this view helper
protected string $tagName
Résultat string