Neos\Neos\Controller\Service\AssetsController::showAction PHP Метод

showAction() публичный Метод

Shows a specific asset
public showAction ( string $identifier ) : string
$identifier string Specifies the asset to look up
Результат string
    public function showAction($identifier)
    {
        $asset = $this->assetRepository->findByIdentifier($identifier);
        if ($asset === null) {
            $this->throwStatus(404);
        }
        $this->view->assign('asset', $asset);
    }