'twig_extension_test_filter',
'#message' => 'Every animal is not a mineral.',
'#safe_join_items' => [
'will be escaped',
$this->t('will be markup'),
['#markup' => 'will be rendered'],
],
];
}
/**
* Menu callback for testing Twig functions in a Twig template.
*/
public function testFunctionRender() {
return ['#theme' => 'twig_extension_test_function'];
}
}