You are here

public static function InlineEntityFormComplex::defaultSettings in Inline Entity Form 8

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides InlineEntityFormBase::defaultSettings

File

src/Plugin/Field/FieldWidget/InlineEntityFormComplex.php, line 101

Class

InlineEntityFormComplex
Complex inline widget.

Namespace

Drupal\inline_entity_form\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  $defaults = parent::defaultSettings();
  $defaults += [
    'allow_new' => TRUE,
    'allow_existing' => FALSE,
    'match_operator' => 'CONTAINS',
    'allow_duplicate' => FALSE,
  ];
  return $defaults;
}