vendor/erdmannfreunde/contao-grid-bundle/src/Controller/ContentElement/ColumnEndController.php line 26

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\Template;
  16. use Symfony\Component\HttpFoundation\Request;
  17. use Symfony\Component\HttpFoundation\Response;
  18. /**
  19.  * @ContentElement("colEnd", category="euf_grid")
  20.  */
  21. class ColumnEndController extends AbstractContentElementController
  22. {
  23.     protected function getResponse(Template $templateContentModel $modelRequest $request): Response
  24.     {
  25.         if ($this->get('contao.routing.scope_matcher')->isBackendRequest($request)) {
  26.             $template = new BackendTemplate('be_wildcard');
  27.             $template->wildcard '### E&F GRID: Spalte Ende ###';
  28.             return $template->getResponse();
  29.         }
  30.         return $template->getResponse();
  31.     }
  32. }