original_string: public function showFolderListAsideViewAction(ContentView $view)
      {
          $subContentCriteria = $this->get('ezdemo.criteria_helper')->generateSubContentCriterion(
              $view->getLocation(),
              $this->container->getParameter('ezdemo.folder.folder_tree.included_content_types'),
              $this->getConfigResolver()->getParameter('languages')
          );
  
          $subContentQuery = new LocationQuery();
          $subContentQuery->query = $subContentCriteria;
          $subContentQuery->sortClauses = array(
              new SortClause\ContentName(),
          );
          $subContentQuery->performCount = false;
  
          $searchService = $this->getRepository()->getSearchService();
          $subContent = $searchService->findLocations($subContentQuery);
  
          $treeChildItems = array();
          foreach ($subContent->searchHits as $hit) {
              $treeChildItems[] = $hit->valueObject;
          }
  
          $view->addParameters(['treeChildItems' => $treeChildItems]);
  
          return $view;
      }
code: public function showFolderListAsideViewAction(ContentView $view)
      {
          $subContentCriteria = $this->get('ezdemo.criteria_helper')->generateSubContentCriterion(
              $view->getLocation(),
              $this->container->getParameter('ezdemo.folder.folder_tree.included_content_types'),
              $this->getConfigResolver()->getParameter('languages')
          );
  
          $subContentQuery = new LocationQuery();
          $subContentQuery->query = $subContentCriteria;
          $subContentQuery->sortClauses = array(
              new SortClause\ContentName(),
          );
          $subContentQuery->performCount = false;
  
          $searchService = $this->getRepository()->getSearchService();
          $subContent = $searchService->findLocations($subContentQuery);
  
          $treeChildItems = array();
          foreach ($subContent->searchHits as $hit) {
              $treeChildItems[] = $hit->valueObject;
          }
  
          $view->addParameters(['treeChildItems' => $treeChildItems]);
  
          return $view;
      }
code_tokens: public function showFolderListAsideViewAction ( ContentView $ view ) { $ subContentCriteria = $ this -> get ( 'ezdemo.criteria_helper' ) -> generateSubContentCriterion ( $ view -> getLocation ( ) , $ this -> container -> getParameter ( 'ezdemo.folder.folder_tree.included_content_types' ) , $ this -> getConfigResolver ( ) -> getParameter ( 'languages' ) ) ; $ subContentQuery = new LocationQuery ( ) ; $ subContentQuery -> query = $ subContentCriteria ; $ subContentQuery -> sortClauses = array ( new SortClause \ ContentName ( ) , ) ; $ subContentQuery -> performCount = false ; $ searchService = $ this -> getRepository ( ) -> getSearchService ( ) ; $ subContent = $ searchService -> findLocations ( $ subContentQuery ) ; $ treeChildItems = array ( ) ; foreach ( $ subContent -> searchHits as $ hit ) { $ treeChildItems [ ] = $ hit -> valueObject ; } $ view -> addParameters ( [ 'treeChildItems' => $ treeChildItems ] ) ; return $ view ; }
docstring: Displays the sub folder if it exists.
  
  @param \eZ\Publish\Core\MVC\Symfony\View\ContentView $view
  
  @return \Symfony\Component\HttpFoundation\Response $location is flagged as invisible
docstring_tokens: Displays the sub folder if it exists .