You are here

public static function EntityReferenceLayoutWidget::defaultSettings in Entity Reference with Layout 8

Default settings for widget.

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldWidget/EntityReferenceLayoutWidget.php, line 1337

Class

EntityReferenceLayoutWidget
Entity Reference with Layout field widget.

Namespace

Drupal\entity_reference_layout\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  $defaults = parent::defaultSettings();
  $defaults += [
    'always_show_options_form' => FALSE,
    'preview_view_mode' => 'default',
  ];
  return $defaults;
}