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));
}