JsTestingLogTestHooks.php
Namespace
Drupal\js_testing_log_test\HookFile
-
core/
modules/ system/ tests/ modules/ js_testing_log_test/ src/ Hook/ JsTestingLogTestHooks.php
View source
<?php
declare (strict_types=1);
namespace Drupal\js_testing_log_test\Hook;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Hook implementations for js_testing_log_test.
*/
class JsTestingLogTestHooks {
/**
* Implements hook_page_attachments().
*/
public function pageAttachments(array &$attachments) {
// 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) {
$settings['suppressDeprecationErrors'] = FALSE;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
JsTestingLogTestHooks | Hook implementations for js_testing_log_test. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.