function test_theme_element_info_alter in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_element_info_alter()
Implements hook_element_info_alter().
File
- core/
modules/ system/ tests/ themes/ test_theme/ test_theme.theme, line 25 - Theme to help test the Twig engine.
Code
function test_theme_element_info_alter(&$info) {
// Decrease the default size of textfields.
if (isset($info['textfield']['#size'])) {
$info['textfield']['#size'] = 40;
}
}