BigPipeBypassJsHooks.php

Namespace

Drupal\big_pipe_bypass_js\Hook

File

core/modules/big_pipe/tests/modules/big_pipe_bypass_js/src/Hook/BigPipeBypassJsHooks.php

View source
<?php

declare (strict_types=1);
namespace Drupal\big_pipe_bypass_js\Hook;

use Drupal\Core\Hook\Attribute\Hook;

/**
 * Hook implementations for big_pipe_bypass_js.
 */
class BigPipeBypassJsHooks {
    
    /**
     * Implements hook_library_info_alter().
     *
     * Disables Big Pipe JavaScript by removing the js file from the library.
     */
    public function libraryInfoAlter(&$libraries, $extension) {
        if ($extension === 'big_pipe') {
            unset($libraries['big_pipe']['js']);
        }
    }

}

Classes

Title Deprecated Summary
BigPipeBypassJsHooks Hook implementations for big_pipe_bypass_js.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.