function hook_webform_source_entity_info_alter in Webform 6.x
Same name and namespace in other branches
- 8.5 webform.api.php \hook_webform_source_entity_info_alter()
Alter definition of WebformSourceEntity plugins.
Parameters
array $definitions: The array of plugin definitions.
1 invocation of hook_webform_source_entity_info_alter()
- WebformSourceEntityManager::__construct in src/
Plugin/ WebformSourceEntityManager.php - Constructs a WebformSourceEntityManager object.
File
- ./
webform.api.php, line 49 - Hooks related to Webform module.
Code
function hook_webform_source_entity_info_alter(array &$definitions) {
if (isset($definitions['some_plugin_whose_weight_i_wanna_change'])) {
$definitions['some_plugin_whose_weight_i_wanna_change']['weight'] = -1000;
}
}