class TextSummaryOrTrimmedFormatter
Same name in other branches
- 8.9.x core/modules/text/src/Plugin/Field/FieldFormatter/TextSummaryOrTrimmedFormatter.php \Drupal\text\Plugin\Field\FieldFormatter\TextSummaryOrTrimmedFormatter
- 10 core/modules/text/src/Plugin/Field/FieldFormatter/TextSummaryOrTrimmedFormatter.php \Drupal\text\Plugin\Field\FieldFormatter\TextSummaryOrTrimmedFormatter
- 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
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
- class \Drupal\Core\Field\PluginSettingsBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\Field\PluginSettingsInterface, \Drupal\Component\Plugin\DependentPluginInterface
- class \Drupal\Core\Field\FormatterBase extends \Drupal\Core\Field\PluginSettingsBase implements \Drupal\Core\Field\FormatterInterface, \Drupal\Core\Plugin\ContainerFactoryPluginInterface
- class \Drupal\text\Plugin\Field\FieldFormatter\TextTrimmedFormatter extends \Drupal\Core\Field\FormatterBase implements \Drupal\Core\Security\TrustedCallbackInterface
- class \Drupal\text\Plugin\Field\FieldFormatter\TextSummaryOrTrimmedFormatter extends \Drupal\text\Plugin\Field\FieldFormatter\TextTrimmedFormatter
- class \Drupal\text\Plugin\Field\FieldFormatter\TextTrimmedFormatter extends \Drupal\Core\Field\FormatterBase implements \Drupal\Core\Security\TrustedCallbackInterface
- class \Drupal\Core\Field\FormatterBase extends \Drupal\Core\Field\PluginSettingsBase implements \Drupal\Core\Field\FormatterInterface, \Drupal\Core\Plugin\ContainerFactoryPluginInterface
- class \Drupal\Core\Field\PluginSettingsBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\Field\PluginSettingsInterface, \Drupal\Component\Plugin\DependentPluginInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
Expanded class hierarchy of TextSummaryOrTrimmedFormatter
File
-
core/
modules/ text/ src/ Plugin/ Field/ FieldFormatter/ TextSummaryOrTrimmedFormatter.php, line 19
Namespace
Drupal\text\Plugin\Field\FieldFormatterView source
class TextSummaryOrTrimmedFormatter extends TextTrimmedFormatter {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.