Cannot pass variables to the twig file, variables are seen in the krumo of the variables test appears, in the twig file {{ test }} , nothing appears.

Example theme.theme file

function template_preprocess_breadcrumb($variables){
$variables['test'] = 'this is a test';
}

breadcrumb.html.twig

{{ test }}

Comments

benjamin.merkley created an issue. See original summary.

tim.plunkett’s picture

You need to have &$variables, right now you're not modifying it.

tim.plunkett’s picture

Status: Active » Closed (works as designed)