You are here

public static function MenuLinkFormatter::defaultSettings in Menu Link (Field) 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldFormatter/MenuLinkFormatter.php \Drupal\menu_link\Plugin\Field\FieldFormatter\MenuLinkFormatter::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/FieldFormatter/MenuLinkFormatter.php, line 78

Class

MenuLinkFormatter
Plugin implementation of the 'menu_link' formatter.

Namespace

Drupal\menu_link\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $options = parent::defaultSettings();
  $options['link_to_target'] = TRUE;
  return $options;
}