Trim the field down to the specified length.
public function renderTrimText($alter, $value) {
if (!empty($alter['strip_tags'])) {
// NOTE: It's possible that some external fields might override the
// element type.
$this->definition['element type'] = 'span';
}
return static::trimText($alter, $value);
}