You are here

public static function PcaAddressFieldWidgetTrait::getFieldWidgetDefaultSettings in Loqate 2.x

Same name and namespace in other branches
  1. 8 src/PcaAddressFieldWidgetTrait.php \Drupal\loqate\PcaAddressFieldWidgetTrait::getFieldWidgetDefaultSettings()

Get the default settings for the field widget.

2 calls to PcaAddressFieldWidgetTrait::getFieldWidgetDefaultSettings()
AddressPcaAddressWidget::defaultSettings in modules/pca_address/src/Plugin/Field/FieldWidget/AddressPcaAddressWidget.php
LoqatePcaAddressDefaultWidget::defaultSettings in src/Plugin/Field/FieldWidget/LoqatePcaAddressDefaultWidget.php
Defines the default settings for this plugin.

File

src/PcaAddressFieldWidgetTrait.php, line 15

Class

PcaAddressFieldWidgetTrait
Class PcaAddressFieldWidgetTrait.

Namespace

Drupal\loqate

Code

public static function getFieldWidgetDefaultSettings() {
  return [
    'pca_fields' => [],
    'pca_options' => [],
    'show_address_fields' => FALSE,
    'allow_manual_input' => TRUE,
    'loqate_api_key' => NULL,
  ];
}