function flags_language_field_widget_info_alter in Flags 8
File
- flags_language/
flags_language.module, line 55
Code
function flags_language_field_widget_info_alter(array &$info) {
// Allow to use widget language_select_menu only when select_icons enabled.
if (\Drupal::moduleHandler()
->moduleExists('select_icons')) {
$info['language_select_menu']['field_types'][] = 'language';
}
}