You are here

public static function PcaAddressFieldWidgetTrait::getFieldWidgetDefaultSettings in Loqate 8

Same name and namespace in other branches
  1. 2.x 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
Defines the default settings for this plugin.
LoqatePcaAddressDefaultWidget::defaultSettings in src/Plugin/Field/FieldWidget/LoqatePcaAddressDefaultWidget.php
Defines the default settings for this plugin.

File

src/PcaAddressFieldWidgetTrait.php, line 17

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,
  ];
}