[android-components](../index.md) / [mozilla.components.feature.top.sites.ext](index.md) / [toTopSite](./to-top-site.md)

# toTopSite

`fun `[`TopFrecentSiteInfo`](../mozilla.components.concept.storage/-top-frecent-site-info/index.md)`.toTopSite(): `[`TopSite`](../mozilla.components.feature.top.sites/-top-site/index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/top-sites/src/main/java/mozilla/components/feature/top/sites/ext/TopFrecentSiteInfo.kt#L15)

Returns a [TopSite](../mozilla.components.feature.top.sites/-top-site/index.md) for the given [TopFrecentSiteInfo](../mozilla.components.concept.storage/-top-frecent-site-info/index.md).

