locale_js_alter
function locale_js_alter
locale_js_alter(&$javascript, AttachedAssetsInterface$assets)
Implements hook_js_alter().
File
- core/modules/locale/locale.module, line 487
- Enables the translation of the user interface to languages other than English.
Code
function locale_js_alter(&$javascript, AttachedAssetsInterface $assets) { // @todo Remove this in https://www.drupal.org/node/2421323. $files = array(); foreach ($javascript as $item) { if (isset($item['type']) && $item['type'] == 'file') { // Ignore the JS translat