src/Controller/PrivacyController.php line 26

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Controller;
  4. use Symfony\Component\HttpFoundation\Request;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. use Symfony\Contracts\Translation\TranslatorInterface;
  8. /**
  9. * @Route(requirements={"_locale": "en|de|sk"})
  10. */
  11. class PrivacyController extends CommonController
  12. {
  13. /**
  14. * @Route(
  15. * "/privacy-policy"
  16. * )
  17. * @Route(
  18. * "/{_locale}/privacy-policy",
  19. * name="privacy_policy"
  20. * )
  21. */
  22. public function index(Request $request, TranslatorInterface $translator): Response
  23. {
  24. return $this->render(
  25. 'privacy/index.html.twig',
  26. [
  27. 'meta_keywords' => 'privacy policy,gdpr,data protection,ezmid',
  28. 'meta_description' => $translator->trans(
  29. 'Privacy Policy - Learn how EZMID collects, uses, and protects your personal data.'
  30. ),
  31. 'lang' => $request->getLocale(),
  32. 'menu' => $this->getMenuItems($request),
  33. 'year' => date('Y'),
  34. 'eLang' => 'sk',
  35. 'failLang' => 'sk',
  36. 'sendLang' => 'sk',
  37. 'nameAlert' => 'sk',
  38. 'emailAlert' => 'sk',
  39. 'messageAlert' => 'sk',
  40. 'header' => [
  41. 'title' => $translator->trans('Privacy Policy'),
  42. 'section' => $translator->trans('Legal'),
  43. ],
  44. 'jobsCount' => $this->config->getOpenJobPositionsCount(),
  45. ]
  46. );
  47. }
  48. }