Skip to content
Snippets Groups Projects
Commit 4c109a59 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2136197 followup by andypost: Move field/instance/widget/formatter...

Issue #2136197 followup by andypost: Move field/instance/widget/formatter settings out of annotation / plugin definition [followup].
parent bb0f5fce
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -18,12 +18,12 @@ abstract class NumericItemBase extends FieldItemBase { ...@@ -18,12 +18,12 @@ abstract class NumericItemBase extends FieldItemBase {
* {@inheritdoc} * {@inheritdoc}
*/ */
public static function defaultInstanceSettings() { public static function defaultInstanceSettings() {
$settings = parent::defaultInstanceSettings(); return array(
$settings['min'] = ''; 'min' => '',
$settings['max'] = ''; 'max' => '',
$settings['prefix'] = ''; 'prefix' => '',
$settings['suffix'] = ''; 'suffix' => '',
return $settings; ) + parent::defaultInstanceSettings();
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment