public static function AvailableCountriesTrait::defaultCountrySettings in Address 8
Defines the default field-level settings.
Return value
array A list of default settings, keyed by the setting name.
3 calls to AvailableCountriesTrait::defaultCountrySettings()
- AddressItem::defaultFieldSettings in src/
Plugin/ Field/ FieldType/ AddressItem.php - Defines the field-level settings for this plugin.
- CountryItem::defaultFieldSettings in src/
Plugin/ Field/ FieldType/ CountryItem.php - Defines the field-level settings for this plugin.
- ZoneItem::defaultFieldSettings in src/
Plugin/ Field/ FieldType/ ZoneItem.php - Defines the field-level settings for this plugin.
File
- src/
Plugin/ Field/ FieldType/ AvailableCountriesTrait.php, line 27
Class
- AvailableCountriesTrait
- Allows field types to limit the available countries.
Namespace
Drupal\address\Plugin\Field\FieldTypeCode
public static function defaultCountrySettings() {
return [
'available_countries' => [],
];
}