function StarkTestThemeHooks::preprocessHtml

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/stark_test/src/Hook/StarkTestThemeHooks.php \Drupal\stark_test\Hook\StarkTestThemeHooks::preprocessHtml()

Implements hook_preprocess_html().

Attributes

#[Hook('preprocess_html')]

File

core/modules/system/tests/modules/stark_test/src/Hook/StarkTestThemeHooks.php, line 28

Class

StarkTestThemeHooks
Hook implementations for stark_test.

Namespace

Drupal\stark_test\Hook

Code

public function preprocessHtml(&$variables) : void {
  $variables['#attached']['library'][] = 'stark_test/log-errors';
}

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