BookStack\Entity::getShortName PHP Метод

getShortName() публичный Метод

Gets a limited-length version of the entities name.
public getShortName ( integer $length = 25 ) : string
$length integer
Результат string
    public function getShortName($length = 25)
    {
        if (strlen($this->name) <= $length) {
            return $this->name;
        }
        return substr($this->name, 0, $length - 3) . '...';
    }