function select2_publish_element_info_alter in Select 2 8
Implements hook_element_info_alter().
File
- modules/
select2_publish/ select2_publish.module, line 14 - This is the select2_publish module.
Code
function select2_publish_element_info_alter(array &$info) {
if (!empty($info['select2'])) {
$info['select2']['#pre_render'][] = [
StatusProperties::class,
'preRender',
];
}
}