function big_pipe_bypass_js_library_info_alter
Same name in other branches
- 10 core/modules/big_pipe/tests/modules/big_pipe_bypass_js/big_pipe_bypass_js.module \big_pipe_bypass_js_library_info_alter()
Implements hook_library_info_alter().
Disables Big Pipe JavaScript by removing the js file from the library.
File
-
core/
modules/ big_pipe/ tests/ modules/ big_pipe_bypass_js/ big_pipe_bypass_js.module, line 15
Code
function big_pipe_bypass_js_library_info_alter(&$libraries, $extension) {
if ($extension === 'big_pipe') {
unset($libraries['big_pipe']['js']);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.