You are here

public static function IpAddressField::defaultFieldSettings in IP address fields 2.0.x

Same name and namespace in other branches
  1. 8 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\FieldType

Code

public static function defaultFieldSettings() {
  return [
    'allow_range' => TRUE,
    'allow_family' => 4,
    'ip4_range' => '',
    'ip6_range' => '',
  ] + parent::defaultFieldSettings();
}