You are here

protected static function NameAdditionalPreferredTrait::getDefaultAdditionalPreferredSettings in Name Field 8

Gets the default settings for alternative and preferred fields.

Return value

array Default settings.

2 calls to NameAdditionalPreferredTrait::getDefaultAdditionalPreferredSettings()
NameFormatter::defaultSettings in src/Plugin/Field/FieldFormatter/NameFormatter.php
Defines the default settings for this plugin.
NameItem::defaultFieldSettings in src/Plugin/Field/FieldType/NameItem.php
Defines the field-level settings for this plugin.

File

src/Traits/NameAdditionalPreferredTrait.php, line 18

Class

NameAdditionalPreferredTrait
Name form for preferred and alternative settings trait.

Namespace

Drupal\name\Traits

Code

protected static function getDefaultAdditionalPreferredSettings() {
  return [
    "preferred_field_reference" => "",
    "preferred_field_reference_separator" => ", ",
    "alternative_field_reference" => "",
    "alternative_field_reference_separator" => ", ",
  ];
}