Implementation de hook_form_alter pour modifier le texte d'un bouton dans le formulaire de commentaire.
<?php function mymodule_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { if($form_id == 'comment_comment_form') { $form['actions']['submit']['#value'] = t('Poster mon commentaire'); } }