Bolt\Storage\Entity\ContentRouteTrait::getLinkSlug PHP Method

getLinkSlug() private method

Get a record's slug depending on the type of object used.
private getLinkSlug ( ) : string | integer
return string | integer
    private function getLinkSlug()
    {
        if ($this instanceof Content) {
            return $this->slug ?: $this->id;
        }
        if (isset($this->values['slug'])) {
            return $this->values['slug'];
        }
        return $this->id;
    }