function common_test_preprocess_common_test_render_element
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/common_test/common_test.module \common_test_preprocess_common_test_render_element()
- 8.9.x core/modules/system/tests/modules/common_test/common_test.module \common_test_preprocess_common_test_render_element()
- 10 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 137
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';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.