PHP Class Neos\Neos\Controller\Service\AssetsController

Inheritance: extends Neos\Flow\Mvc\Controller\ActionController, use trait Neos\Neos\Controller\BackendUserTranslationTrait
显示文件 Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$assetRepository Neos\Media\Domain\Repository\AssetRepository
$asyncThumbnails boolean
$supportedMediaTypes array A list of IANA media types which are supported by this controller
$tagRepository Neos\Media\Domain\Repository\TagRepository
$viewFormatToObjectNameMap array

Public Methods

Method Description
indexAction ( string $searchTerm = '' ) : string Shows a list of assets
initializeView ( Neos\Flow\Mvc\View\ViewInterface $view ) : void
showAction ( string $identifier ) : string Shows a specific asset

Method Details

indexAction() public method

Shows a list of assets
public indexAction ( string $searchTerm = '' ) : string
$searchTerm string An optional search term used for filtering the list of assets
return string

initializeView() public method

public initializeView ( Neos\Flow\Mvc\View\ViewInterface $view ) : void
$view Neos\Flow\Mvc\View\ViewInterface
return void

showAction() public method

Shows a specific asset
public showAction ( string $identifier ) : string
$identifier string Specifies the asset to look up
return string

Property Details

$assetRepository protected_oe property

protected AssetRepository,Neos\Media\Domain\Repository $assetRepository
return Neos\Media\Domain\Repository\AssetRepository

$asyncThumbnails protected_oe property

protected bool $asyncThumbnails
return boolean

$supportedMediaTypes protected_oe property

A list of IANA media types which are supported by this controller
See also: http://www.iana.org/assignments/media-types/index.html
protected array $supportedMediaTypes
return array

$tagRepository protected_oe property

protected TagRepository,Neos\Media\Domain\Repository $tagRepository
return Neos\Media\Domain\Repository\TagRepository

$viewFormatToObjectNameMap protected_oe property

protected array $viewFormatToObjectNameMap
return array