Change record status: 
Project: 
Introduced in branch: 
8.x
Description: 

To support the use of Twig syntax in render arrays, a new inline_template render element has been added:

$build['string'] = array(
  '#type' => 'inline_template',
  '#template' => '{{ var }}',
  '#context' => array(
    'var' => $possible_unsafe_var,
  ),
);

Related change records

See Twig autoescape enabled and text sanitization APIs updated for a full list of related change records and for other strategies for combining strings safely.

Impacts: 
Module developers
Themers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done