function BigPipeBypassJsHooks::libraryInfoAlter
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/ src/ Hook/ BigPipeBypassJsHooks.php, line 19
Class
- BigPipeBypassJsHooks
- Hook implementations for big_pipe_bypass_js.
Namespace
Drupal\big_pipe_bypass_js\HookCode
public function libraryInfoAlter(&$libraries, $extension) : void {
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.