function big_pipe_bypass_js_library_info_alter

Same name and namespace in other branches
  1. 11.x 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 13

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.