AddEllipsis
extends AbstractHelper
in package
"Add ellipsis" view helper
Tags
Table of Contents
- __invoke() : string
- Adds "..." to the beginning and/or end of a highlighted phrase when incomplete text is detected.
Methods
__invoke()
Adds "..." to the beginning and/or end of a highlighted phrase when incomplete text is detected.
public
__invoke(string $highlighted, mixed $fullString) : string
Parameters
- $highlighted : string
-
Highlighted, possibly abbreviated string
- $fullString : mixed
-
Full, non-highlighted text
Return values
string —Highlighted string with ellipsis added