appened custom text to content in template_preprocess_taxonomy_term drupal 8 I want to append some custom text to taxonomy term pages using template_preprocess_taxonomy_term hook, But when I add my custom array key to it, the text don't show up on the term pages.
PS I have cleared drupal cache many time.

Here is my code


function cars_theme_preprocess_taxonomy_term(&amp;$variables) {
      if($variables['view_mode'] == 'full'){
         $variables['content']['cars_view'] = "this is test";
     }
}
Ok, so here is how I did it.

function cars_theme_preprocess_taxonomy_term(&amp;$variables) {
      if($variables['view_mode'] == 'full'){
         $variables['cars_view'] = "this is test";
     }
}


And then in my twig file I output the cars_view as {{ cars_view }}