comparison core/lib/Drupal/Core/Asset/AssetResolver.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
310 $settings = FALSE; 310 $settings = FALSE;
311 if ($settings_required && $settings_have_changed) { 311 if ($settings_required && $settings_have_changed) {
312 $settings = $this->getJsSettingsAssets($assets); 312 $settings = $this->getJsSettingsAssets($assets);
313 // Allow modules to add cached JavaScript settings. 313 // Allow modules to add cached JavaScript settings.
314 foreach ($this->moduleHandler->getImplementations('js_settings_build') as $module) { 314 foreach ($this->moduleHandler->getImplementations('js_settings_build') as $module) {
315 $function = $module . '_' . 'js_settings_build'; 315 $function = $module . '_js_settings_build';
316 $function($settings, $assets); 316 $function($settings, $assets);
317 } 317 }
318 } 318 }
319 $settings_in_header = in_array('core/drupalSettings', $header_js_libraries); 319 $settings_in_header = in_array('core/drupalSettings', $header_js_libraries);
320 $this->cache->set($cid, [$js_assets_header, $js_assets_footer, $settings, $settings_in_header], CacheBackendInterface::CACHE_PERMANENT, ['library_info']); 320 $this->cache->set($cid, [$js_assets_header, $js_assets_footer, $settings, $settings_in_header], CacheBackendInterface::CACHE_PERMANENT, ['library_info']);