You are here

public static function EntityReferenceRenderedBase::defaultSettings in Entityreference Rendered Widget 8

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldWidget/EntityReferenceRenderedBase.php, line 107

Class

EntityReferenceRenderedBase
Base class for widgets provided by this module.

Namespace

Drupal\entityreference_rendered_widget\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'display_mode' => 'default',
    'label_display' => 'before',
  ] + parent::defaultSettings();
}