]> Raphaël G. Git Repositories - airbundle/commitdiff
Add default locations_link and locations_title
authorRaphaël Gertz <git@rapsys.eu>
Mon, 24 Oct 2022 05:36:57 +0000 (07:36 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Mon, 24 Oct 2022 05:36:57 +0000 (07:36 +0200)
Controller/AbstractController.php

index 8a10b87681016db671bb194fe15da59d4573585a..f06178d77b834dd93b435cf3614e021976b00f6b 100644 (file)
@@ -509,6 +509,18 @@ abstract class AbstractController extends BaseAbstractController implements Serv
                        }*/
                }
 
+               //With empty locations link
+               if (empty($parameters['locations_link'])) {
+                       //Set locations link
+                       $parameters['locations_link'] = $this->router->generate('rapsys_air_location');
+               }
+
+               //With empty locations title
+               if (empty($parameters['locations_title'])) {
+                       //Set locations title
+                       $parameters['locations_title'] = $this->translator->trans('Locations', [], null, $this->locale);
+               }
+
                //With canonical
                if (!empty($parameters['canonical'])) {
                        //Set facebook url