You are here

public static function YoastSeoWidget::defaultSettings in Real-time SEO for Drupal 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldWidget/YoastSeoWidget.php \Drupal\yoast_seo\Plugin\Field\FieldWidget\YoastSeoWidget::defaultSettings()

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/YoastSeoWidget.php, line 66

Class

YoastSeoWidget
Advanced widget for yoast_seo field.

Namespace

Drupal\yoast_seo\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  $settings = [
    'body' => 'body',
  ];
  return $settings + parent::defaultSettings();
}