public static function ViewWidget::defaultSettings in Entity Reference View 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/ ViewWidget.php, line 40 - Contains \Drupal\entity_reference_view_widget\Plugin\Field\FieldWidget\ViewWidget.
Class
- ViewWidget
- Plugin implementation of the 'entity_reference_view_widget' widget.
Namespace
Drupal\entity_reference_view_widget\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return array(
'view' => '',
'pass_argument' => TRUE,
'close_modal' => FALSE,
'allow_duplicates' => FALSE,
) + parent::defaultSettings();
}