public function getSitemap(string $url)
    {
        return collect($this->tags)->first(function (Tag $tag) use ($url) {
            return $tag->getType() === 'sitemap' && $tag->url === $url;
        });
    }
public function getSitemap(string $url)
    {
        return collect($this->tags)->first(function (Tag $tag) use ($url) {
            return $tag->getType() === 'sitemap' && $tag->url === $url;
        });
    }
public function getSitemap ( string $ url ) { return collect ( $ this -> tags ) -> first ( function ( Tag $ tag ) use ( $ url ) { return $ tag -> getType ( ) === 'sitemap' && $ tag -> url === $ url ; } ) ; }
Get sitemap tag.

@param string $url

@return \Spatie\Sitemap\Tags\Sitemap|null
Get sitemap tag .