src/Controller/Website/DefaultController.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Website;
  3. use App\Entity\DataTScopus;
  4. use Sulu\Bundle\WebsiteBundle\Controller\DefaultController as SuluController;
  5. use Sulu\Component\Content\Compat\StructureInterface;
  6. use Symfony\Component\HttpFoundation\Response;
  7. class DefaultController extends SuluController
  8. {
  9.     /**
  10.      * Loads the content from the request (filled by the route provider) and creates a response with this content and
  11.      * the appropriate cache headers.
  12.      *
  13.      * @param bool $preview
  14.      * @param bool $partial
  15.      *
  16.      * @return Response
  17.      */
  18.     public function indexAction(StructureInterface $structure$preview false$partial false)
  19.     {
  20.         $response $this->renderStructure(
  21.             $structure,
  22.             [],
  23.             $preview,
  24.             $partial
  25.         );
  26.         return $response;
  27.     }
  28. }