function common_test_preprocess_common_test_render_element in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/common_test/common_test.module \common_test_preprocess_common_test_render_element()
Implements MODULE_preprocess_HOOK().
See also
RenderTest::testDrupalRenderThemePreprocessAttached()
File
- core/
modules/ system/ tests/ modules/ common_test/ common_test.module, line 162 - Helper module for the Common tests.
Code
function common_test_preprocess_common_test_render_element(&$variables) {
if (!\Drupal::state()
->get('theme_preprocess_attached_test', FALSE)) {
return;
}
$variables['#attached']['library'][] = 'test/specific_preprocess';
}