public function getSitemapItemBySlug($slug)
    {
        $sitemap = $this->repository->sitemap;
        foreach ($sitemap as $sitemapItem) {
            if ($sitemapItem->slug == $slug) {
                return $sitemapItem;
            }
        }

        return null;
    }
public function getSitemapItemBySlug($slug)
    {
        $sitemap = $this->repository->sitemap;
        foreach ($sitemap as $sitemapItem) {
            if ($sitemapItem->slug == $slug) {
                return $sitemapItem;
            }
        }

        return null;
    }
public function getSitemapItemBySlug ( $ slug ) { $ sitemap = $ this -> repository -> sitemap ; foreach ( $ sitemap as $ sitemapItem ) { if ( $ sitemapItem -> slug == $ slug ) { return $ sitemapItem ; } } return null ; }
Get a sitemap item by its slug

@param $slug

@return mixed
Get a sitemap item by its slug