class AssetsController extends ActionController (View source)

Rudimentary REST service for assets

Traits

A trait to add backend translation based on the backend users settings

Properties

protected Service $localizationService from  BackendUserTranslationTrait
protected UserService $userService from  BackendUserTranslationTrait
protected AssetRepository $assetRepository
protected TagRepository $tagRepository
protected bool $asyncThumbnails
protected array<string,class-string> $viewFormatToObjectNameMap
protected array<int,string> $supportedMediaTypes

A list of IANA media types which are supported by this controller

Methods

void
initializeObject()

Set the locale according to the user settings

void
initializeView(ViewInterface $view)

No description

void
indexAction(string $searchTerm = '')

Shows a list of assets

void
showAction(string $identifier)

Shows a specific asset

Details

protected void initializeObject()

Set the locale according to the user settings

Return Value

void

void initializeView(ViewInterface $view)

No description

Parameters

ViewInterface $view

Return Value

void

void indexAction(string $searchTerm = '')

Shows a list of assets

Parameters

string $searchTerm

An optional search term used for filtering the list of assets

Return Value

void

void showAction(string $identifier)

Shows a specific asset

Parameters

string $identifier

Specifies the asset to look up

Return Value

void

Exceptions

StopActionException
UnsupportedRequestTypeException