class TextSummaryOrTrimmedFormatter

Same name in other branches
  1. 8.9.x core/modules/text/src/Plugin/Field/FieldFormatter/TextSummaryOrTrimmedFormatter.php \Drupal\text\Plugin\Field\FieldFormatter\TextSummaryOrTrimmedFormatter
  2. 10 core/modules/text/src/Plugin/Field/FieldFormatter/TextSummaryOrTrimmedFormatter.php \Drupal\text\Plugin\Field\FieldFormatter\TextSummaryOrTrimmedFormatter
  3. 11.x core/modules/text/src/Plugin/Field/FieldFormatter/TextSummaryOrTrimmedFormatter.php \Drupal\text\Plugin\Field\FieldFormatter\TextSummaryOrTrimmedFormatter

Plugin implementation of the 'text_summary_or_trimmed' formatter.

Plugin annotation


@FieldFormatter(
  id = "text_summary_or_trimmed",
  label = @Translation("Summary or trimmed"),
  field_types = {
    "text_with_summary"
  },
  quickedit = {
    "editor" = "form"
  }
)

Hierarchy

Expanded class hierarchy of TextSummaryOrTrimmedFormatter

File

core/modules/text/src/Plugin/Field/FieldFormatter/TextSummaryOrTrimmedFormatter.php, line 19

Namespace

Drupal\text\Plugin\Field\FieldFormatter
View source
class TextSummaryOrTrimmedFormatter extends TextTrimmedFormatter {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.