Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Render/theme.api.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 7a779792577d |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
762 return '.html.twig'; | 762 return '.html.twig'; |
763 } | 763 } |
764 | 764 |
765 /** | 765 /** |
766 * Render a template using the theme engine. | 766 * Render a template using the theme engine. |
767 * | |
768 * It is the theme engine's responsibility to escape variables. The only | |
769 * exception is if a variable implements | |
770 * \Drupal\Component\Render\MarkupInterface. Drupal is inherently unsafe if | |
771 * other variables are not escaped. The helper function | |
772 * theme_render_and_autoescape() may be used for this. | |
767 * | 773 * |
768 * @param string $template_file | 774 * @param string $template_file |
769 * The path (relative to the Drupal root directory) to the template to be | 775 * The path (relative to the Drupal root directory) to the template to be |
770 * rendered including its extension in the format 'path/to/TEMPLATE_NAME.EXT'. | 776 * rendered including its extension in the format 'path/to/TEMPLATE_NAME.EXT'. |
771 * @param array $variables | 777 * @param array $variables |