Sulu\Bundle\SearchBundle\Controller\SearchController::indexesAction PHP Method

indexesAction() public method

Return a JSON encoded scalar array of index names.
public indexesAction ( ) : Response
return Symfony\Component\HttpFoundation\Response
    public function indexesAction()
    {
        return $this->viewHandler->handle(View::create(array_map(function ($indexName) {
            $indexConfiguration = $this->indexConfigurationProvider->getIndexConfiguration($indexName);
            return $indexConfiguration ?: new IndexConfiguration($indexName);
        }, $this->getAllowedIndexes())));
    }