You are here

function _select2boxes_address_widgets_list in Select2 Boxes 8

Get a list of address fields widgets supported.

Return value

array List of address fields widgets supported.

3 calls to _select2boxes_address_widgets_list()
select2boxes_field_widget_form_alter in ./select2boxes.module
Implements hook_field_widget_form_alter().
select2boxes_field_widget_settings_summary_alter in ./select2boxes.module
Implements hook_field_widget_settings_summary_alter().
select2boxes_field_widget_third_party_settings_form in ./select2boxes.module
Implements hook_field_widget_third_party_settings_form().

File

./select2boxes.module, line 201
Basic module file.

Code

function _select2boxes_address_widgets_list() {
  return \Drupal::moduleHandler()
    ->moduleExists('address') ? [
    'address_default',
    'address_country_default',
    'address_zone_default',
  ] : [];
}