Problem/Motivation
I often use plain text ("string") fields with custom max length over 255. Actually even 255 is long enough to span multiple lines.
Proposed resolution
Add "string" to src/Plugin/Field/FieldFormatter/ExpandableFormatter.php
/**
* Plugin implementation of the 'expandable formatter' formatter.
*
* @FieldFormatter(
* id = "expandable_formatter",
* label = @Translation("Expandable"),
* field_types = {
* "text",
* "text_long",
* "text_with_summary",
* "string_long",
* "string"
* },
* )
*/I did exactly that and it works as expected on plain text fields.
Comments