Neos\Neos\Service\Controller\NodeController::searchPageAction PHP Метод

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

Search a page, needed for internal links.
Устаревший: will be removed with 3.0, use Service/NodesController->indexAction() instead
public searchPageAction ( string $query ) : void
$query string
Результат void
    public function searchPageAction($query)
    {
        $searchResult = array();
        $documentNodeTypes = $this->nodeTypeManager->getSubNodeTypes('Neos.Neos:Document');
        /** @var NodeInterface $node */
        foreach ($this->nodeSearchService->findByProperties($query, $documentNodeTypes, $this->createContext('live')) as $node) {
            $searchResult[$node->getPath()] = $this->processNodeForEditorPlugins($node);
        }
        $this->view->assign('value', array('searchResult' => $searchResult, 'success' => true));
    }