Метод compressDescription
Сигнатура метода
public static function compressDescription(Activity $activity): string
Возвращает:
string
Описание
Replaces the description of the activity with the preview stored in the column and answers with the full text the body of the letter is made of. THE RULE OF THE PREVIEW STAYS WITH THE PROVIDER of an email, which owns both the limit and the way a markup is stripped down to it; this class only turns the typed activity into the field array that rule is written against and back. A copy of the limit here would be the copy that goes stale. THE MARKUP IS HANDED OVER ONLY WHEN THE ACTIVITY HAS ONE: the provider falls back to HTML for an activity without a markup, and a fallback of the model - which is a plain text - would strip a letter as if it had no tags.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$activity
|
Activity
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Service/Activity/Pipeline/Step/Shared/EmailBranch.php