diff --git a/web/themes/erabletheme/erabletheme.theme b/web/themes/erabletheme/erabletheme.theme
index eb0db9e..26b36d7 100644
--- a/web/themes/erabletheme/erabletheme.theme
+++ b/web/themes/erabletheme/erabletheme.theme
@@ -25,6 +25,19 @@ function erabletheme_preprocess_page(&$variables) {
function erabletheme_preprocess_node(&$variables) {
$t = "t";
}
+function erabletheme_preprocess_node__view__meetup(&$variables) {
+ /** @var \Drupal\node\Entity */
+ $node = $variables['node'];
+ $user_id = $node->get('uid')->getValue()[0]['target_id'];
+ /** @var Drupal\user\Entity */
+ $user = \Drupal\user\Entity\User::load($user_id);
+ /** @var Drupal\profile\Entity */
+ $profile = $user->get('candidat' . '_profiles')->entity;
+ $variables['profile'] = [
+ 'nom' => $profile->get('field_nom')->getValue()[0]['value'],
+ 'prenom' => $profile->get('field_prenom')->getValue()[0]['value']
+ ];
+}
/**
* Implements hook_preprocess_HOOK() for node.html.twig.
diff --git a/web/themes/erabletheme/templates/node/node--view--meetup.html.twig b/web/themes/erabletheme/templates/node/node--view--meetup.html.twig
index 02b612e..4321298 100644
--- a/web/themes/erabletheme/templates/node/node--view--meetup.html.twig
+++ b/web/themes/erabletheme/templates/node/node--view--meetup.html.twig
@@ -74,6 +74,6 @@
Proposé le {{ date }}
→
- {{ author_name }} + {{ profile.prenom }} {{ profile.nom }}