You are here

public static function NameItem::defaultFieldSettings in Name Field 8

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/NameItem.php, line 85

Class

NameItem
Plugin implementation of the 'name' field type.

Namespace

Drupal\name\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  $settings = self::getDefaultNameFieldSettings();
  $settings += self::getDefaultNameFormDisplaySettings();
  $settings += self::getDefaultAdditionalPreferredSettings();
  $settings['override_format'] = 'default';
  return $settings + parent::defaultFieldSettings();
}