Skip to content

Drupal Display Mode-powered Entity, Form and Field Druxt components.

DruxtFieldTextSummaryOrTrimmed

View source on GitHub

DruxtFieldTextSummaryOrTrimmed

Deprecated in druxt-entity:0.16.0, removed from druxt-entity:2.0.0. Use a field wrapper component resolved by the component suggestion system instead.

Renders a formatted text field's summary, or the value trimmed to the configured length.

See: /modules/entity/deprecations


.format(item) ⇒ string

Formats the item output.

Kind: instance method of DruxtFieldTextSummaryOrTrimmed
Returns: string - The item's summary, or the value trimmed to the trim length.

ParamTypeDescription
itemobjectThe field item.

.computed

Kind: static property of DruxtFieldTextSummaryOrTrimmed


.trimLength : integer

Trim length.

Kind: static property of computed
Default: 600