function element_info_test_element_info_alter
Same name in other branches
- 9 core/modules/system/tests/modules/element_info_test/element_info_test.module \element_info_test_element_info_alter()
- 10 core/modules/system/tests/modules/element_info_test/element_info_test.module \element_info_test_element_info_alter()
- 11.x core/modules/system/tests/modules/element_info_test/element_info_test.module \element_info_test_element_info_alter()
Implements hook_element_info_alter().
File
-
core/
modules/ system/ tests/ modules/ element_info_test/ element_info_test.module, line 11
Code
function element_info_test_element_info_alter(array &$info) {
$info['number'] += [
'#pre_render' => [],
];
/* @see \Drupal\KernelTests\Core\Render\Element\WeightTest::testProcessWeightSelectMax() */
$info['number']['#pre_render'][] = 'element_info_test_element_pre_render';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.