updated core and modules
This commit is contained in:
@@ -13,7 +13,7 @@ use Drupal\Core\Extension\Extension;
|
||||
* Implements hook_theme().
|
||||
*/
|
||||
function twig_theme($existing, $type, $theme, $path) {
|
||||
$templates = drupal_find_theme_functions($existing, array($theme));
|
||||
$templates = drupal_find_theme_functions($existing, [$theme]);
|
||||
$templates += drupal_find_theme_templates($existing, '.html.twig', $path);
|
||||
return $templates;
|
||||
}
|
||||
@@ -63,9 +63,6 @@ function twig_render_template($template_file, array $variables) {
|
||||
try {
|
||||
$output['rendered_markup'] = $twig_service->loadTemplate($template_file)->render($variables);
|
||||
}
|
||||
catch (\Twig_Error_Loader $e) {
|
||||
drupal_set_message($e->getMessage(), 'error');
|
||||
}
|
||||
catch (\Twig_Error_Runtime $e) {
|
||||
// In case there is a previous exception, re-throw the previous exception,
|
||||
// so that the original exception is shown, rather than
|
||||
|
||||
@@ -4,8 +4,8 @@ name: Twig
|
||||
# version: VERSION
|
||||
package: Core
|
||||
|
||||
# Information added by Drupal.org packaging script on 2016-08-03
|
||||
version: '8.1.8'
|
||||
# Information added by Drupal.org packaging script on 2017-08-16
|
||||
version: '8.3.7'
|
||||
core: '8.x'
|
||||
project: 'drupal'
|
||||
datestamp: 1470233792
|
||||
datestamp: 1502903957
|
||||
|
||||
Reference in New Issue
Block a user