vendor/erdmannfreunde/contao-grid-bundle/src/Controller/ContentElement/ColumnStartController.php line 27

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of erdmannfreunde/contao-grid-bundle.
  5.  *
  6.  * (c) Erdmann & Freunde <https://erdmann-freunde.de>
  7.  *
  8.  * @license MIT
  9.  */
  10. namespace ErdmannFreunde\ContaoGridBundle\Controller\ContentElement;
  11. use Contao\BackendTemplate;
  12. use Contao\ContentModel;
  13. use Contao\CoreBundle\Controller\ContentElement\AbstractContentElementController;
  14. use Contao\CoreBundle\ServiceAnnotation\ContentElement;
  15. use Contao\CoreBundle\Twig\FragmentTemplate;
  16. use Contao\Template;
  17. use Symfony\Component\HttpFoundation\Request;
  18. use Symfony\Component\HttpFoundation\Response;
  19. /**
  20.  * @ContentElement("colStart", category="euf_grid")
  21.  */
  22. class ColumnStartController extends AbstractContentElementController
  23. {
  24.     protected function getResponse(Template $templateContentModel $modelRequest $request): Response
  25.     {
  26.         if ($this->get('contao.routing.scope_matcher')->isBackendRequest($request)) {
  27.             $template = new BackendTemplate('be_wildcard');
  28.             $template->wildcard '### E&F GRID: Spalte Start ###';
  29.             return $template->getResponse();
  30.         }
  31.         return $template->getResponse();
  32.     }
  33. }