public static function IpAddressField::defaultFieldSettings in IP address fields 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Field/FieldType/IpAddressField.php \Drupal\field_ipaddress\Plugin\Field\FieldType\IpAddressField::defaultFieldSettings()
Defines the field-level settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides FieldItemBase::defaultFieldSettings
File
- src/
Plugin/ Field/ FieldType/ IpAddressField.php, line 117
Class
- IpAddressField
- Plugin implementation of the 'ipaddress' field type.
Namespace
Drupal\field_ipaddress\Plugin\Field\FieldTypeCode
public static function defaultFieldSettings() {
return [
'allow_range' => TRUE,
'allow_family' => 4,
'ip4_range' => '',
'ip6_range' => '',
] + parent::defaultFieldSettings();
}