core/web/jsonld/TextValue.php
public function truncate($length)
    {
        $this->_text = StringHelper::truncate($this->_text, $length);
        
        return $this;
    }
public function truncate($length)
    {
        $this->_text = StringHelper::truncate($this->_text, $length);
        
        return $this;
    }
public function truncate ( $ length ) { $ this -> _text = StringHelper :: truncate ( $ this -> _text , $ length ) ; return $ this ; }
Truncate the string for a given lenth.

@param integer $length
@return \luya\web\jsonld\TextValue
Truncate the string for a given lenth .