/**
  * Search a page, needed for internal links.
  *
  * @deprecated will be removed with 3.0, use Service/NodesController->indexAction() instead
  * @param string $query
  * @return void
  */
 public function searchPageAction($query)
 {
     $searchResult = array();
     $documentNodeTypes = $this->nodeTypeManager->getSubNodeTypes('TYPO3.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));
 }
 /**
  * Get every unpublished node in the workspace with the given workspace name
  *
  * @param \TYPO3\TYPO3CR\Domain\Model\Workspace $workspace
  * @return void
  */
 public function getWorkspaceWideUnpublishedNodesAction($workspace)
 {
     $this->view->assignNodes($this->publishingService->getUnpublishedNodes($workspace));
 }