public function getUrlsafeIdentifier($document)
    {
        $id = $this->getNormalizedIdentifier($document);

        if (null !== $id) {
            return substr($id, 1);
        }
    }
public function getUrlsafeIdentifier($document)
    {
        $id = $this->getNormalizedIdentifier($document);

        if (null !== $id) {
            return substr($id, 1);
        }
    }
public function getUrlsafeIdentifier ( $ document ) { $ id = $ this -> getNormalizedIdentifier ( $ document ) ; if ( null !== $ id ) { return substr ( $ id , 1 ) ; } }
Currently only the leading slash is removed.

TODO: do we also have to encode certain characters like spaces or does that happen automatically?

{@inheritdoc}
Currently only the leading slash is removed .