Plugin implementation of the 'text_trimmed'' formatter.
Note: This class also contains the implementations used by the 'text_summary_or_trimmed' formatter.
@FieldFormatter(
id = "text_trimmed",
module = "text",
label = @Translation("Trimmed"),
field_types = {
"text",
"text_long",
"text_with_summary"
},
settings = {
"trim_length" = "600"
},
edit = {
"editor" = "form"
}
)
Expanded class hierarchy of TextTrimmedFormatter
Drupal\text\Field\Formatter\TextSummaryOrTrimmedFormatter