In D7 the copyright line in a tpl.php file might look like this: <p>© Copyright <?php echo date('Y'); ?> Company Name</p> In D8/9 the TWIG template needs to be like this: <p>© Copyright {{ currentYear|raw }} Company Name</p> Main Category Drupal 8 Secondary Categories Drupal 9