diff --git a/web/themes/custom/reha/reha.theme b/web/themes/custom/reha/reha.theme index efb77b4..80fa15b 100644 --- a/web/themes/custom/reha/reha.theme +++ b/web/themes/custom/reha/reha.theme @@ -78,4 +78,16 @@ function reha_preprocess_block(&$variables) { ] ); } + if ($variables['plugin_id'] === "page_title_block") { + if (\Drupal::routeMatch()->getRouteName() === 'node.add') { + $node_type = \Drupal::routeMatch()->getParameter('node_type'); + if ($node_type->id() === 'operation') { + $variables['content'] = [ + '#type' => 'page_title', + '#title' => 'Proposer une opération' + ]; + } + } + } + } \ No newline at end of file