function element_info_test_element_plugin_alter
Same name in other branches
- 8.9.x core/modules/system/tests/modules/element_info_test/element_info_test.module \element_info_test_element_plugin_alter()
- 10 core/modules/system/tests/modules/element_info_test/element_info_test.module \element_info_test_element_plugin_alter()
- 11.x core/modules/system/tests/modules/element_info_test/element_info_test.module \element_info_test_element_plugin_alter()
Implements hook_element_plugin_alter().
File
-
core/
modules/ system/ tests/ modules/ element_info_test/ element_info_test.module, line 20
Code
function element_info_test_element_plugin_alter(array &$definitions) {
if (\Drupal::state()->get('hook_element_plugin_alter:remove_weight', FALSE)) {
unset($definitions['weight']);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.