Craft\SeomaticTwigExtension::truncateStringOnWord PHP Method

truncateStringOnWord() public method

* -------------------------------------------------------------------------------- Truncate the the string passed in, breaking it on a word. $desiredLength is in characters; the returned string will be broken on a whole-word boundary, with an … appended to the end if it is truncated --------------------------------------------------------------------------------
public truncateStringOnWord ( $theString, $desiredLength )
    public function truncateStringOnWord($theString, $desiredLength)
    {
        $result = craft()->seomatic->truncateStringOnWord($theString, $desiredLength);
        return $result;
    }