private function getLinkSlug()
    {
        if ($this instanceof Content) {
            return $this->slug ?: $this->id;
        }

        if (isset($this->values['slug'])) {
            return $this->values['slug'];
        }

        return $this->id;
    }
private function getLinkSlug()
    {
        if ($this instanceof Content) {
            return $this->slug ?: $this->id;
        }

        if (isset($this->values['slug'])) {
            return $this->values['slug'];
        }

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

@return string|int
Get a record s slug depending on the type of object used .