public static function MenuLinkBreadcrumbFormatter::defaultSettings in Menu Link (Field) 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Field/FieldFormatter/MenuLinkBreadcrumbFormatter.php \Drupal\menu_link\Plugin\Field\FieldFormatter\MenuLinkBreadcrumbFormatter::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/ MenuLinkBreadcrumbFormatter.php, line 79
Class
- MenuLinkBreadcrumbFormatter
- Plugin implementation of the 'menu_link_breadcrumb' formatter.
Namespace
Drupal\menu_link\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
$options = parent::defaultSettings();
$options['parents_only'] = FALSE;
$options['link_to_target'] = TRUE;
return $options;
}