Neos\Neos\Controller\Service\AssetsController::indexAction PHP Method

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
    public function indexAction($searchTerm = '')
    {
        $assets = $this->assetRepository->findBySearchTermOrTags($searchTerm, $this->tagRepository->findBySearchTerm($searchTerm)->toArray());
        $this->view->assign('assets', $assets);
    }