Theme colour switcher

Blog Topic: comments

I wanted to change the format of the comment submitted timestamp on my blog, and figured it could be done in Twig - but nope. There's an active issue on Drupal.org to allow the format to be changed in the UI, but until that's done, you need to use a theme preprocess function. function THEMENAME_preprocess_comment(&$variables) {  $date_formatter = \Drupal::service('date.formatter…

Continue reading Change format of comment created date - Drupal 8 & 9