Issue #1898424: Convert layout module to Twig.