CMS\Page::getSlug PHP Method

getSlug() public method

Return link to file
public getSlug ( string | null $src = null ) : string
$src string | null
return string
    public function getSlug($src = null)
    {
        $slug = str_replace(realpath($src), '', $this->isDir() ? $this->getRealPath() : $this->getDir() . '/' . $this->getName() !== 'index' ? $this->getName() : null);
        return filter(self::class . '::' . __FUNCTION__, $slug, $this);
    }