//With user
'user' => $this->checker->isGranted('ROLE_ADMIN'),
//Set user choices
- 'user_choices' => $this->doctrine->getRepository(User::class)->findIndexByGroupPseudonym(),
+ 'user_choices' => $this->doctrine->getRepository(User::class)->findChoicesAsArray(),
//Set default user to current
'user_default' => $this->getUser()->getId(),
//Set to session slot or evening by default
//Append facebook image texts
$parameters['facebook']['texts'] += [
$parameters['title'] => [
+ 'font' => 'irishgrover',
'align' => 'left'
]/*XXX: same problem as url, too long :'(,
$parameters['description'] => [
}*/
}
+ //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