class JsTestingLogTestHooks

Hook implementations for js_testing_log_test.

Hierarchy

Expanded class hierarchy of JsTestingLogTestHooks

File

core/modules/system/tests/modules/js_testing_log_test/src/Hook/JsTestingLogTestHooks.php, line 12

Namespace

Drupal\js_testing_log_test\Hook
View source
class JsTestingLogTestHooks {
    
    /**
     * Implements hook_page_attachments().
     */
    public function pageAttachments(array &$attachments) : void {
        // Unconditionally attach an asset to the page.
        $attachments['#attached']['library'][] = 'js_testing_log_test/deprecation_log';
    }
    
    /**
     * Implements hook_js_settings_alter().
     */
    public function jsSettingsAlter(&$settings) : void {
        $settings['suppressDeprecationErrors'] = FALSE;
    }

}

Members

Title Sort descending Modifiers Object type Summary
JsTestingLogTestHooks::jsSettingsAlter public function Implements hook_js_settings_alter().
JsTestingLogTestHooks::pageAttachments public function Implements hook_page_attachments().

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