Skip to content

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

DruxtFieldTextTrimmed

View source on GitHub

DruxtFieldTextTrimmed

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 value, trimmed to the configured length.

See: /modules/entity/deprecations


.format(item) ⇒ string

Formats the item output.

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

ParamTypeDescription
itemobjectThe field item.

.computed

Kind: static property of DruxtFieldTextTrimmed


.trimLength : integer

Trim length.

Kind: static property of computed
Default: 600