Replaced PHP code with twig variable