diff --git a/src/Plugin/Field/FieldFormatter/WeightFieldFormatter.php b/src/Plugin/Field/FieldFormatter/WeightFieldFormatter.php new file mode 100644 index 0000000..4921b8c --- /dev/null +++ b/src/Plugin/Field/FieldFormatter/WeightFieldFormatter.php @@ -0,0 +1,38 @@ + $item) { + // The text value has no text format assigned to it, so the user input + // should equal the output, including newlines. + $elements[$delta] = [ + '#markup' => $item->value, + ]; + } + + return $elements; + } + +} \ No newline at end of file