templates/_flashbag.html.twig line 1

Open in your IDE?
  1. {% for label, messages in app.flashes %}
  2.     {% for message in messages %}
  3.         <script>
  4.             toastr.options = {
  5.                 "closeButton": true,
  6.                 "debug": false,
  7.                 "newestOnTop": false,
  8.                 "progressBar": true,
  9.                 "positionClass": "toast-bottom-right",
  10.                 "preventDuplicates": false,
  11.                 "onclick": null,
  12.                 "showDuration": "300",
  13.                 "hideDuration": "1000",
  14.                 "timeOut": "5000",
  15.                 "extendedTimeOut": "4000",
  16.                 "showEasing": "swing",
  17.                 "hideEasing": "linear",
  18.                 "showMethod": "fadeIn",
  19.                 "hideMethod": "fadeOut"
  20.             };
  21.             toastr.{{ label }}("{{ message }}");
  22.         </script>
  23.     {% endfor %}
  24. {% endfor %}